/* ===== Authentication Pages Styles ===== */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: var(--spacing-xl) var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    max-width: 500px;
    width: 100%;
}

.auth-card {
    background-color: var(--background);
    border-radius: var(--radius-lg);
    padding: var(--spacing-4xl) var(--spacing-xl);
    box-shadow: 0 20px 60px rgba(15, 23, 42, .1);
    margin-bottom: var(--spacing-xl);
}

.auth-logo {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.auth-logo img {
    max-width: 180px;
    height: auto;
}

.auth-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.otp-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-lg);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.otp-icon i {
    font-size: 36px;
    color: var(--text-inverse);
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.auth-title i {
    color: var(--primary-color);
}

.auth-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
}

.auth-form {
    margin-bottom: var(--spacing-xl);
}

.auth-form .form-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 13.5px;
    color: #1e293b;
    margin-bottom: 10px;
}

.auth-form .form-label i {
    color: var(--primary-color);
    font-size: 14px;
}

.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    transition: all var(--transition-fast);
}

.password-toggle:hover {
    color: var(--primary-color);
}

.password-toggle i {
    font-size: 16px;
}

.password-strength {
    font-size: 13px;
    margin-top: var(--spacing-sm);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.password-strength.very-weak {
    color: #dc2626;
}

.password-strength.weak {
    color: #f59e0b;
}

.password-strength.medium {
    color: #3b82f6;
}

.password-strength.strong {
    color: #10b981;
}

.password-strength.very-strong {
    color: #16a34a;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-wrapper label {
    font-size: 14px;
    color: var(--text-dark);
    cursor: pointer;
    margin: 0;
}

.checkbox-wrapper a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.checkbox-wrapper a:hover {
    text-decoration: underline;
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgot-password-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.forgot-password-link:hover {
    text-decoration: underline;
}

.otp-input {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 8px;
    font-family: 'Courier New', monospace;
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: var(--spacing-xl) 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--border);
}

.auth-divider span {
    position: relative;
    background-color: var(--background);
    padding: 0 var(--spacing-md);
    color: var(--text-muted);
    font-size: 14px;
}

.auth-footer {
    text-align: center;
}

.auth-footer p {
    color: var(--text-muted);
    font-size: 15px;
    margin: 0;
}

.auth-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.auth-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.auth-link-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.auth-link-btn:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.countdown {
    color: var(--text-muted);
    font-size: 14px;
    margin-right: var(--spacing-sm);
}

/* Features */
.auth-features {
    background-color: var(--background);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border);
}

.feature-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.feature-item:first-child {
    padding-top: 0;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 22px;
    color: var(--text-inverse);
}

.feature-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.feature-content p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* Info Box */
.auth-info-box {
    background-color: var(--background);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
    display: flex;
    gap: var(--spacing-md);
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(29, 43, 108, .08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon i {
    font-size: 22px;
    color: var(--primary-color);
}

.info-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.info-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-content ul li {
    font-size: 14px;
    color: var(--text-muted);
    padding: 4px 0;
    padding-right: 20px;
    position: relative;
}

.info-content ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    color: var(--success);
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 640px) {
    .auth-page {
        padding: var(--spacing-md);
    }

    .auth-card {
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .auth-title {
        font-size: 24px;
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .auth-subtitle {
        font-size: 14px;
    }

    .otp-input {
        font-size: 24px;
        letter-spacing: 4px;
    }

    .form-row {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }

    .auth-info-box {
        flex-direction: column;
    }
}

/* ===== Validation Styles ===== */
.validation-summary {
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
    border: 2px solid #DC2626;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    gap: 16px;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

.validation-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: #DC2626;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 20px;
}

.validation-content h4 {
    font-size: 15px;
    font-weight: 700;
    color: #991B1B;
    margin-bottom: 8px;
}

.validation-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.validation-content ul li {
    font-size: 14px;
    color: #991B1B;
    padding: 4px 0;
    padding-right: 20px;
    position: relative;
}

.validation-content ul li::before {
    content: '•';
    position: absolute;
    right: 0;
    color: #DC2626;
    font-weight: 700;
    font-size: 18px;
}

/* Inline Validation */
.text-danger {
    color: #DC2626 !important;
    font-size: 13px;
    font-weight: 500;
    display: inline-block;
    margin-right: 4px;
}

.form-control.input-validation-error {
    border-color: #DC2626 !important;
    background-color: #FEF2F2;
}

.form-control.input-validation-error:focus {
    border-color: #DC2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

.field-validation-error {
    display: block;
    color: #DC2626;
    font-size: 13px;
    margin-top: 6px;
    font-weight: 500;
}

.field-validation-valid {
    display: none;
}

/* Silicon Valley Style Social Login */
.social-login {
    margin-top: 24px;
    width: 100%;
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: 10px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-size: 14px;
    width: 100%;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    border-bottom: 2px solid #e2e8f0;
}

.google-btn:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.google-btn:active {
    transform: translateY(0);
    border-bottom-width: 1px;
    background-color: #f1f5f9;
}

.google-icon {
    font-size: 18px;
    background: linear-gradient(45deg, #4285F4, #34A853, #FBBC05, #EA4335);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
}

/* Silicon Valley Divider */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 35px 0 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-divider::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0 20%, #e2e8f0 80%, transparent);
}

.auth-divider span {
    position: relative;
    background-color: #fff;
    padding: 0 16px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}


/* Success State */
.form-control.input-validation-success {
    border-color: #16A34A;
}

.form-control.input-validation-success:focus {
    border-color: #16A34A;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}