/* ==================== BACKGROUND ==================== */
.auth-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.auth-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.auth-orb-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -100px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.07) 0%, transparent 70%);
}

.auth-orb-2 {
    width: 400px;
    height: 400px;
    bottom: -150px;
    left: 5%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.04) 0%, transparent 70%);
}

.auth-grid {
    position: absolute;
    inset: 0;
    background-image:
            linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ==================== BACK BUTTON ==================== */
.auth-back-btn {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 100;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #a3a3a3;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    backdrop-filter: blur(10px);
}

.auth-back-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(3px);
}

/* ==================== CONTAINER ==================== */
.auth-container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
}

/* ==================== LEFT PANEL ==================== */
.auth-panel {
    width: 420px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.015);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    flex-direction: column;
    justify-content: center;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.auth-panel-inner {
    padding: 48px 40px;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-feature-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth-price-widget {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    padding: 20px;
}

/* ==================== RIGHT PANEL ==================== */
.auth-form-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px 24px;
    min-height: 100vh;
}

.auth-form-panel > * {
    width: 100%;
    max-width: 420px;
}

/* ==================== TABS ==================== */
.auth-tabs {
    display: flex;
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 5px;
    margin-bottom: 32px;
    gap: 4px;
}

.auth-tab {
    flex: 1;
    padding: 11px;
    border-radius: 10px;
    background: transparent;
    border: none;
    color: #737373;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: 'AzarMehr', sans-serif;
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

.auth-tab.active {
    color: #ffffff;
}

.auth-tab-indicator {
    position: absolute;
    top: 5px;
    bottom: 5px;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    transition: all 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
    z-index: 1;
}

/* ==================== AUTH FORM ==================== */
.auth-form {
    display: none;
    animation: authFadeIn 0.4s ease;
    width: 100%;
    max-width: 420px;
}

.auth-form.active {
    display: block;
}

@keyframes authFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.auth-form-header {
    margin-bottom: 28px;
}

/* ==================== FORM ELEMENTS ==================== */
.auth-form-group {
    margin-bottom: 18px;
}

.auth-label {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: #d4d4d4;
    margin-bottom: 8px;
}

.auth-input-wrap {
    position: relative;
}

.auth-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 13px 16px;
    padding-left: 44px;
    color: #ffffff;
    font-size: 0.9rem;
    font-family: 'AzarMehr', sans-serif;
    outline: none;
    transition: all 0.3s ease;
}

.auth-input:focus {
    border-color: rgba(245, 158, 11, 0.5);
    background: rgba(245, 158, 11, 0.03);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.08);
}

.auth-input::placeholder {
    color: #3a3a3a;
}

.auth-input.has-error {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.03);
}

.auth-input.is-valid {
    border-color: rgba(16, 185, 129, 0.4);
}

.ltr-input {
    direction: ltr;
    text-align: right;
}

.auth-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #404040;
    pointer-events: none;
    transition: color 0.3s ease;
}

.auth-input:focus ~ .auth-input-icon {
    color: #f59e0b;
}

/* Password Toggle */
.pass-toggle {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #525252;
    cursor: pointer;
    padding: 4px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.pass-toggle:hover {
    color: #f59e0b;
}

/* Auth Error */
.auth-error {
    font-size: 0.78rem;
    color: #ef4444;
    margin-top: 6px;
    min-height: 18px;
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0;
    transform: translateY(-4px);
    transition: all 0.3s ease;
}

.auth-error.show {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== CHECKBOX ==================== */
.auth-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.auth-checkbox {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.auth-checkbox.checked {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* ==================== SUBMIT BUTTON ==================== */
.auth-submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #0a0a0a;
    font-weight: 800;
    font-size: 0.95rem;
    font-family: 'AzarMehr', sans-serif;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 28px rgba(245, 158, 11, 0.28);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.auth-submit-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #fcd34d, #f59e0b);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auth-submit-btn:hover::before {
    opacity: 1;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(245, 158, 11, 0.38);
}

.auth-submit-btn > * {
    position: relative;
    z-index: 1;
}

.auth-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Back Step Button */
.auth-back-step-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: #a3a3a3;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'AzarMehr', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-back-step-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.15);
}

/* Cancel Button */
.auth-cancel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    color: #737373;
    font-size: 0.88rem;
    font-family: 'AzarMehr', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-cancel-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

/* Spinner */
.btn-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner-ring {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(0, 0, 0, 0.2);
    border-top-color: #0a0a0a;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== DIVIDER ==================== */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 0;
    color: #3a3a3a;
    font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
}

/* ==================== SOCIAL BUTTONS ==================== */
.auth-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #a3a3a3;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: 'AzarMehr', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-social-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ==================== FORGOT PASSWORD BOX ==================== */
.forgot-pass-box {
    margin-top: 20px;
    padding: 20px;
    border-radius: 16px;
    background: rgba(245, 158, 11, 0.04);
    border: 1px solid rgba(245, 158, 11, 0.15);
    animation: authFadeIn 0.3s ease;
}

/* ==================== REGISTER STEPS ==================== */
.reg-steps {
    display: flex;
    align-items: center;
    margin-bottom: 28px;
}

.reg-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.reg-step-dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: #525252;
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.reg-step.active .reg-step-dot {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-color: transparent;
    color: #0a0a0a;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}

.reg-step.done .reg-step-dot {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.4);
    color: #10b981;
}

.reg-step-label {
    font-size: 0.7rem;
    color: #525252;
    font-weight: 600;
    transition: color 0.4s ease;
    white-space: nowrap;
}

.reg-step.active .reg-step-label { color: #f59e0b; }
.reg-step.done  .reg-step-label  { color: #10b981; }

.reg-step-connector {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.06);
    margin: 0 6px;
    margin-bottom: 18px;
    transition: background 0.4s ease;
}

.reg-step-connector.done {
    background: rgba(16, 185, 129, 0.3);
}

/* ==================== REG FORM STEPS ==================== */
.reg-form-step {
    display: none;
    animation: authFadeIn 0.35s ease;
}

.reg-form-step.active {
    display: block;
}

/* ==================== PASSWORD STRENGTH ==================== */
.pass-strength-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    overflow: hidden;
}

.pass-strength-fill {
    height: 100%;
    border-radius: 100px;
    width: 0;
    transition: width 0.4s ease, background 0.4s ease;
}

.pass-strength-fill.weak   { width: 25%; background: #ef4444; }
.pass-strength-fill.fair   { width: 50%; background: #f97316; }
.pass-strength-fill.good   { width: 75%; background: #f59e0b; }
.pass-strength-fill.strong { width: 100%; background: #10b981; }

.pass-strength-label {
    font-size: 0.75rem;
    margin-top: 5px;
    font-weight: 600;
    transition: color 0.3s ease;
}

/* Password Rules */
.pass-rules {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 10px 0 18px;
}

.pass-rule {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    color: #525252;
    transition: color 0.3s ease;
}

.pass-rule svg {
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.pass-rule.valid {
    color: #10b981;
}

.pass-rule.valid svg {
    stroke: #10b981;
}

/* ==================== OTP ==================== */
.otp-box {
    text-align: center;
    padding: 24px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    margin-bottom: 20px;
}

.otp-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.otp-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 14px;
    direction: ltr;
}

.otp-input {
    width: 48px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 700;
    font-family: 'AzarMehr', sans-serif;
    text-align: center;
    outline: none;
    transition: all 0.3s ease;
    caret-color: #f59e0b;
}

.otp-input:focus {
    border-color: rgba(245, 158, 11, 0.6);
    background: rgba(245, 158, 11, 0.05);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.otp-input.filled {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.04);
}

.otp-input.error {
    border-color: rgba(239, 68, 68, 0.5);
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-6px); }
    40%       { transform: translateX(6px); }
    60%       { transform: translateX(-4px); }
    80%       { transform: translateX(4px); }
}

.otp-timer {
    font-size: 0.8rem;
    color: #737373;
    margin-top: 8px;
}

.otp-timer span {
    color: #f59e0b;
    font-weight: 700;
    direction: ltr;
    display: inline-block;
}

.otp-resend {
    background: none;
    border: none;
    color: #f59e0b;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'AzarMehr', sans-serif;
    cursor: pointer;
    margin-top: 8px;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.otp-resend:hover {
    color: #fcd34d;
}

/* ==================== SUCCESS ==================== */
.auth-success {
    text-align: center;
    padding: 10px 0;
    animation: authFadeIn 0.5s ease;
}

.auth-success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 10px 32px rgba(16, 185, 129, 0.3);
    animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes successPop {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .auth-panel {
        display: none !important;
    }
    .auth-form-panel {
        padding: 100px 20px 48px;
    }
}

@media (max-width: 480px) {
    .otp-input {
        width: 40px;
        height: 48px;
        font-size: 1.2rem;
        border-radius: 10px;
    }
    .otp-inputs {
        gap: 7px;
    }
}