/* auth.css */
.auth-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    border: 1px solid #f3f4f6;
    box-shadow: 0 10px 25px rgba(0,0,0,0.02);
}

.auth-title {
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Social Row */
.auth-social-row {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.auth-social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 50px;
    border: 1.5px solid #e5e7eb;
    text-decoration: none;
    color: #374151;
    font-weight: 600;
    font-size: 13px;
    transition: 0.2s;
}

.auth-social-btn:hover { background: #f9fafb; border-color: #d1d5db; }

/* Divider */
.auth-divider {
    text-align: center;
    border-bottom: 1px solid #f1f1f1;
    line-height: 0.1em;
    margin: 30px 0;
}

.auth-divider span {
    background: #fff;
    padding: 0 15px;
    color: #9ca3af;
    font-size: 10px;
    font-weight: 800;
}

/* Inputs */
.auth-field { position: relative; margin-bottom: 18px; }

.auth-field-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    display: flex;
}

.auth-input {
    height: 50px;
    padding-left: 45px !important;
    border-radius: 12px !important;
    border: 1.5px solid #e5e7eb !important;
    font-size: 14px;
    transition: 0.3s;
}

.auth-input:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 4px rgba(var(--color-primary-rgb), 0.1) !important;
}

/* Password Toggle Alignment */
.auth-password-wrapper { position: relative; }

.auth-toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 5px;
    color: #94a3b8;
    cursor: pointer;
    z-index: 5;
    display: flex;
}

/* Section Heads */
.auth-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.auth-section-title { font-weight: 800; font-size: 13px; color: #1f2937; }

/* Buttons */
.auth-btn-primary {
    width: 100%;
    height: 50px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
}

.auth-btn-outline {
    width: 100%;
    height: 50px;
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
}

.secure-badge {
    font-size: 10px;
    font-weight: 700;
    color: #166534;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-link-sm { border: none; background: none; font-size: 12px; font-weight: 600; color: #6b7280; text-decoration: underline; }

@media (max-width: 768px) {
    .auth-columns { flex-direction: column; }
    .border-start-md { border-left: none !important; border-top: 1px solid #f1f1f1; padding-top: 40px; margin-top: 40px; }
    .auth-social-row { flex-direction: column; }
}

/* ==================== FORGOT PASSWORD (3-STEP FLOW) ==================== */
.forgot-modal-card {
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.forgot-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.forgot-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.forgot-step-desc {
    font-size: 0.9rem;
}

/* OTP Inputs */
.otp-inputs {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.otp-digit {
    width: 44px;
    height: 50px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.otp-digit:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
}

.otp-digit.filled {
    border-color: var(--color-primary);
    background: rgba(15, 23, 42, 0.03);
}

/* Password Strength */
.password-strength {
    margin-top: 4px;
}

.strength-bar {
    height: 4px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 4px;
}

.strength-fill {
    display: block;
    height: 100%;
    width: 0%;
    background: #94a3b8;
    transition: width 0.2s, background 0.2s;
}

.strength-fill.weak { width: 33%; background: #ef4444; }
.strength-fill.medium { width: 66%; background: #f59e0b; }
.strength-fill.strong { width: 100%; background: #22c55e; }

.strength-text {
    color: #64748b;
    font-size: 0.75rem;
}

/* Button Loading State */
.auth-btn-primary.loading {
    pointer-events: none;
    opacity: 0.7;
}

.auth-btn-primary.loading::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid rgba(255,255,255,0.5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}