/* Login Page Styles - Using Theme Colors */

/* Login page specific centering */
.login-page .registration-container {
    background: linear-gradient(135deg, #f0f1f4 0%, #d4f4f2 25%, #e3eeef 50%, #d8e2eb 75%, #f3f6f9 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    margin: 0;
}

.login-page .container {
    max-width: 100%;
    width: 100%;
    padding: 0 1rem;
}

.login-page .row {
    justify-content: center;
    width: 100%;
}

/* Login specific column sizing */
.login-page .col-lg-8 {
    flex: 0 0 100%;
    max-width: 500px;
}

.login-page .col-xl-7 {
    flex: 0 0 100%;
    max-width: 500px;
}

/* Responsive sizing for login */
@media (min-width: 576px) {
    .login-page .col-lg-8,
    .login-page .col-xl-7 {
        flex: 0 0 90%;
        max-width: 90%;
    }
}

@media (min-width: 768px) {
    .login-page .col-lg-8,
    .login-page .col-xl-7 {
        flex: 0 0 40%;
        max-width: 40%;
    }
}

@media (min-width: 992px) {
    .login-page .col-lg-8,
    .login-page .col-xl-7 {
        flex: 0 0 40%;
        max-width: 40%;
    }
}

@media (min-width: 1200px) {
    .login-page .col-lg-8,
    .login-page .col-xl-7 {
        flex: 0 0 40%;
        max-width: 40%;
    }
}

/* Registration container (keep original behavior for register page) */
.registration-container:not(.login-page .registration-container) {
    background: linear-gradient(135deg, #f0f1f4 0%, #d4f4f2 25%, #e3eeef 50%, #d8e2eb 75%, #f3f6f9 100%);
    min-height: 100vh;
    padding: 2rem 0;
}

.registration-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

/* Override Bootstrap column classes for wider registration form ONLY */
.register-page .col-lg-8 {
    flex: 0 0 85%;
    max-width: 85%;
}

.register-page .col-xl-7 {
    flex: 0 0 80%;
    max-width: 80%;
}

/* For even larger screens, make it wider - Registration only */
@media (min-width: 1400px) {
    .register-page .col-xl-7 {
        flex: 0 0 75%;
        max-width: 75%;
    }
}

@media (min-width: 1600px) {
    .register-page .col-xl-7 {
        flex: 0 0 70%;
        max-width: 70%;
    }
}

.wizard-header {
    background: linear-gradient(135deg, #198754 0%, #238781 100%);
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
}

.wizard-header h1 {
    color: white;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.wizard-header p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 1.1rem;
}

/* Step Indicators (for Register page) */
.step-indicators {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 4rem;
    padding: 0 1rem;
}

.step-indicator {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.step-indicator.active {
    background: white;
    color: #198754;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.step-indicator.completed {
    background: #04a17f;
    color: white;
}

.step-label {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    font-weight: 500;
    text-align: center;
    width: max-content;
    min-width: 80px;
    padding: 0 4px;
    line-height: 1.2;
}

.wizard-content {
    padding: 3rem 2rem;
}

.step-content {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f3f4f6;
}

.step-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: linear-gradient(135deg, #198754 0%, #238781 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    box-shadow: 0 8px 20px rgba(25, 135, 84, 0.3);
}

.step-icon i {
    color: white;
    font-size: 1.5rem;
}

.step-title h2 {
    color: #1f2937;
    font-weight: 700;
    margin-bottom: 0.25rem;
    font-size: 1.5rem;
}

.step-title p {
    color: #6b7280;
    margin: 0;
    font-size: 1rem;
}

.form-control, .form-select {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus, .form-select:focus {
    border-color: #198754;
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.1);
    outline: none;
}

.form-label {
    color: #374151;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.required-star {
    color: #ef4444;
    margin-left: 2px;
}

.input-group-text {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-right: none;
    border-radius: 12px 0 0 12px;
    color: #6b7280;
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 12px 12px 0;
}

.btn {
    border-radius: 12px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #198754 0%, #238781 100%);
    box-shadow: 0 4px 15px rgba(25, 135, 84, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 135, 84, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #04a17f 0%, #198754 100%);
    box-shadow: 0 4px 15px rgba(4, 161, 127, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(4, 161, 127, 0.4);
}

.btn-outline-secondary {
    background: white;
    border: 2px solid #e5e7eb;
    color: #6b7280;
}

.btn-outline-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #4b5563;
}

.btn-outline-primary {
    background: white;
    border: 2px solid #198754;
    color: #198754;
}

.btn-outline-primary:hover {
    background: #198754;
    color: white;
}

.btn-outline-warning {
    background: white;
    border: 2px solid #f59e0b;
    color: #f59e0b;
}

.btn-outline-warning:hover {
    background: #f59e0b;
    color: white;
}

.optional-badge {
    background: linear-gradient(135deg, #eebb30 0%, #f59e0b 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.alert-info {
    background: linear-gradient(135deg, #d4f4f2 0%, #c5fef1 100%);
    border: none;
    border-radius: 12px;
    color: #024033;
    padding: 1rem 1.5rem;
}

.alert-info i {
    color: #039ce0;
    font-size: 1.2rem;
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.card-header {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-bottom: 2px solid #e5e7eb;
    border-radius: 15px 15px 0 0;
    padding: 1rem 1.5rem;
}

.progress {
    height: 8px;
    border-radius: 4px;
    background: #e5e7eb;
}

.progress-bar {
    background: linear-gradient(90deg, #198754 0%, #238781 100%);
    border-radius: 4px;
}

.form-check-input:checked {
    background-color: #198754;
    border-color: #198754;
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.1);
}

.text-primary {
    color: #198754 !important;
}

.text-decoration-none:hover {
    text-decoration: underline !important;
}

.login-link {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.login-link a {
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-link a:hover {
    color: #198754;
}

.is-invalid {
    border-color: #dc3545 !important;
}

.wizard-validation-error {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Action Buttons (for Register page) */
.action-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
    padding: 1.5rem 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 2rem;
}

.action-buttons .btn {
    min-height: 44px;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 500;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
}

.action-buttons .btn i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

.action-buttons .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .registration-container {
        padding: 1rem 0;
    }
    
    .wizard-header {
        padding: 2rem 1rem;
    }
    
    .wizard-header h1 {
        font-size: 1.5rem;
    }
    
    .wizard-header p {
        font-size: 1rem;
    }
    
    .step-indicators {
        padding: 0 0.5rem;
        margin-bottom: 3rem;
    }
    
    .step-indicator {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .step-label {
        font-size: 0.65rem;
        bottom: -25px;
        min-width: 70px;
    }
    
    .wizard-content {
        padding: 2rem 1rem;
    }
    
    .step-header {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
    
    .step-icon {
        width: 50px;
        height: 50px;
        margin-right: 1rem;
    }
    
    .step-icon i {
        font-size: 1.25rem;
    }
    
    .step-title h2 {
        font-size: 1.25rem;
    }
    
    .step-title p {
        font-size: 0.9rem;
    }
    
    .form-control, .form-select {
        padding: 0.625rem 0.875rem;
        font-size: 0.95rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .action-buttons {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .action-buttons .btn {
        flex: 1;
        min-width: 0;
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
    
    .action-buttons .btn i {
        margin-right: 0.375rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .step-indicator {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .step-label {
        font-size: 0.6rem;
        bottom: -22px;
        min-width: 60px;
    }
    
    .wizard-header h1 {
        font-size: 1.25rem;
    }
    
    .step-icon {
        width: 45px;
        height: 45px;
    }
    
    .step-icon i {
        font-size: 1.1rem;
    }
    
    .step-title h2 {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}
