/* Authentication Pages Styles */

/* CSS Variables */
:root {
    --light-sky-blue: #87CEEB;
    --pale-pastel-pink: #F8BBD9;
    --soft-mint-green: #B8E6B8;
    --light-peach-orange: #FFCBA4;
    --gentle-lavender-purple: #DDA0DD;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #6c757d;
    --text-dark: #2c3e50;
    --border-color: #e9ecef;
}

/* Auth Section */
.auth-section {
    min-height: 80vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
}

.auth-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
}

.auth-header {
    margin-bottom: 30px;
}

.auth-title {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 28px;
    margin-bottom: 10px;
}

.auth-subtitle {
    color: var(--dark-gray);
    font-size: 16px;
    margin: 0;
}

/* Form Styles */
.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form .form-label {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 8px;
}

.auth-form .form-control {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.auth-form .form-control:focus {
    border-color: var(--light-sky-blue);
    box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.1);
}

.auth-form .input-group-text {
    background: var(--light-gray);
    border: 2px solid var(--border-color);
    border-right: none;
    color: var(--dark-gray);
}

.auth-form .input-group .form-control {
    border-left: none;
}

.auth-form .input-group:focus-within .input-group-text {
    border-color: var(--light-sky-blue);
    background: rgba(135, 206, 235, 0.1);
}

/* Password Toggle */
.auth-form .input-group .btn-outline-secondary {
    border: 2px solid var(--border-color);
    border-left: none;
    background: var(--light-gray);
    color: var(--dark-gray);
}

.auth-form .input-group .btn-outline-secondary:hover {
    background: var(--light-sky-blue);
    border-color: var(--light-sky-blue);
    color: var(--white);
}

/* Form Check */
.auth-form .form-check {
    margin-bottom: 20px;
}

.auth-form .form-check-input:checked {
    background-color: var(--light-sky-blue);
    border-color: var(--light-sky-blue);
}

.auth-form .form-check-label {
    color: var(--text-dark);
    font-size: 14px;
}

/* Buttons */
.auth-form .btn-primary {
    background: linear-gradient(135deg, var(--light-sky-blue), #5dade2);
    border: none;
    border-radius: 10px;
    padding: 12px 30px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.auth-form .btn-primary:hover {
    background: linear-gradient(135deg, #5dade2, var(--light-sky-blue));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(135, 206, 235, 0.4);
}

/* Links */
.forgot-password-link {
    color: var(--light-sky-blue);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.forgot-password-link:hover {
    color: #5dade2;
    text-decoration: underline;
}

/* Auth Divider */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 25px 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    background: var(--white);
    padding: 0 20px;
    color: var(--dark-gray);
    font-size: 14px;
}

/* Social Login */
.social-login .btn {
    border-radius: 10px;
    padding: 12px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-login .btn-outline-primary {
    border-color: #1877f2;
    color: #1877f2;
}

.social-login .btn-outline-primary:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: var(--white);
}

.social-login .btn-outline-success {
    border-color: #db4437;
    color: #db4437;
}

.social-login .btn-outline-success:hover {
    background: #db4437;
    border-color: #db4437;
    color: var(--white);
}

/* Auth Footer */
.auth-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    margin: 0;
    color: var(--dark-gray);
    font-size: 14px;
}

.register-link,
.login-link {
    color: var(--light-sky-blue);
    text-decoration: none;
    font-weight: 600;
}

.register-link:hover,
.login-link:hover {
    color: #5dade2;
    text-decoration: underline;
}

/* Registration Steps */
.registration-steps {
    margin-bottom: 30px;
}

.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 25%;
    right: 25%;
    height: 2px;
    background: var(--border-color);
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
    max-width: 120px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-gray);
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: var(--light-sky-blue);
    color: var(--white);
}

.step.completed .step-number {
    background: var(--soft-mint-green);
    color: var(--text-dark);
}

.step-label {
    font-size: 12px;
    color: var(--dark-gray);
    text-align: center;
}

.step.active .step-label {
    color: var(--light-sky-blue);
    font-weight: 600;
}

/* Registration Step Content */
.registration-step {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Password Strength */
.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background: var(--light-gray);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-fill.weak {
    width: 25%;
    background: #dc3545;
}

.strength-fill.fair {
    width: 50%;
    background: #ffc107;
}

.strength-fill.good {
    width: 75%;
    background: #17a2b8;
}

.strength-fill.strong {
    width: 100%;
    background: #28a745;
}

.strength-text {
    font-size: 12px;
    color: var(--dark-gray);
}

/* Gender Options */
.gender-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.gender-options .form-check {
    margin-bottom: 0;
}

/* OTP Verification */
.otp-verification {
    text-align: center;
}

.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
}

.otp-input {
    width: 50px;
    height: 50px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.otp-input:focus {
    border-color: var(--light-sky-blue);
    box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.1);
    outline: none;
}

.phone-display {
    font-weight: 600;
    color: var(--light-sky-blue);
    font-size: 16px;
}

/* Registration Success */
.registration-success {
    padding: 40px 20px;
}

.welcome-benefits {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
}

.welcome-benefits h5 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.welcome-benefits ul {
    margin: 0;
}

.welcome-benefits li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.welcome-benefits li i {
    width: 20px;
    text-align: center;
}

.success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Mobile Responsive */
@media (max-width: 767.98px) {
    .auth-card {
        padding: 30px 20px;
        margin: 20px;
        border-radius: 15px;
    }
    
    .auth-title {
        font-size: 24px;
    }
    
    .step-indicator {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .step {
        max-width: 80px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .step-label {
        font-size: 11px;
    }
    
    .otp-inputs {
        gap: 8px;
    }
    
    .otp-input {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .gender-options {
        justify-content: center;
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    .success-actions .btn {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .auth-section {
        padding: 20px 0;
        min-height: auto;
    }
    
    .auth-card {
        margin: 10px;
        padding: 25px 15px;
    }
    
    .step-indicator::before {
        display: none;
    }
    
    .otp-input {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}