/* auth.css — استایل مشترک صفحات حساب کاربری (ورود، تایید کد، تکمیل پروفایل، پروفایل)
   قبلاً این استایل به‌صورت تقریباً یکسان در ۴ فایل جدا کپی شده بود؛
   اینجا یک‌بار تعریف شده و همه صفحات همین فایل را لینک می‌کنند. */

.claude-chat-shell {
    --bg: #09090b;
    --surface: #18181b;
    --panel: #202025;
    --panel-hover: #27272a;
    --border: #27272a;
    --border-soft: rgba(255, 255, 255, 0.08);
    --text: #f4f4f5;
    --text-secondary: #d4d4d8;
    --text-muted: #a1a1aa;
    --accent-a: #6366f1;
    --accent-b: #a855f7;
    --accent-grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #a855f7 100%);
    --accent-soft: rgba(99, 102, 241, 0.14);
    --focus-ring: rgba(99, 102, 241, 0.22);
    --danger: #ef4444;
    --danger-soft: rgba(239, 68, 68, 0.14);
    --success: #22c55e;
    --radius-xl: 24px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --shadow-composer: 0 12px 32px -4px rgba(0, 0, 0, 0.45), 0 4px 12px -2px rgba(0, 0, 0, 0.3);
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    padding: 20px;
}

    .claude-chat-shell::before,
    .claude-chat-shell::after {
        content: '';
        position: fixed;
        pointer-events: none;
        z-index: 0;
        border-radius: 50%;
        filter: blur(70px);
    }

    .claude-chat-shell::before {
        top: -160px;
        right: 10%;
        width: 560px;
        height: 420px;
        background: radial-gradient(circle, rgba(99, 102, 241, 0.16) 0%, rgba(0, 0, 0, 0) 70%);
    }

    .claude-chat-shell::after {
        bottom: -120px;
        left: 6%;
        width: 460px;
        height: 380px;
        background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
    }

    .claude-chat-shell > * {
        position: relative;
        z-index: 1;
    }

    .claude-chat-shell * {
        box-sizing: border-box;
    }

.glass-login-card {
    width: 100%;
    max-width: 440px;
    background: rgba(24, 24, 27, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-composer);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-header {
    text-align: center;
}

.login-header-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-grad);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.35), 0 4px 14px rgba(76, 110, 245, 0.28);
    margin-bottom: 12px;
}

.login-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 6px 0;
}

.login-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

    .login-subtitle b {
        color: var(--text-secondary);
        font-weight: 600;
        direction: ltr;
        display: inline-block;
    }

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    direction: rtl;
}

.form-label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.input-field-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

    .input-field-wrapper i {
        position: absolute;
        right: 14px;
        color: var(--text-muted);
        width: 18px;
        height: 18px;
        pointer-events: none;
        transition: color 0.2s;
    }

.form-input, .form-select {
    width: 100%;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 42px 12px 14px;
    font-size: 0.9rem;
    color: var(--text);
    font-family: inherit;
    outline: none;
    transition: all 0.25s ease;
}

.form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

.select-arrow-icon {
    position: absolute;
    left: 14px;
    right: auto !important;
    pointer-events: none;
}

    .form-input::placeholder {
        color: var(--text-muted);
        opacity: 0.6;
    }

    .form-input:focus, .form-select:focus {
        border-color: var(--accent-a);
        box-shadow: 0 0 0 3px var(--focus-ring);
        background: var(--panel-hover);
    }

        .form-input:focus + i,
        .input-field-wrapper:focus-within i {
            color: var(--accent-a);
        }

.form-select option {
    background-color: #18181b;
    color: var(--text);
    padding: 10px;
}

    .form-input.is-invalid {
        border-color: var(--danger);
        background: var(--danger-soft);
    }

        .form-input.is-invalid:focus {
            box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
        }

.field-error-message {
    display: none;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    color: #f87171;
    min-height: 16px;
    line-height: 1.4;
}

    .field-error-message.show {
        display: flex;
    }

    .field-error-message i {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
    }

.submit-btn {
    width: 100%;
    background: var(--accent-grad);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    padding: 13px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
    transition: all 0.25s ease;
    margin-top: 8px;
}

    .submit-btn:hover {
        opacity: 0.92;
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    }

    .submit-btn:active {
        transform: translateY(0);
    }

    .submit-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

/* دکمه‌ی خطر (مثلاً «خروج از حساب») — جایگزین استایل رنگ‌ثابتِ inline قبلی در Profile.cshtml */
.submit-btn-danger {
    background: var(--danger);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

    .submit-btn-danger:hover {
        box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    }

/* ---- جعبه‌های کد تایید (فقط VerifyCode.cshtml) ---- */
.code-boxes {
    display: flex;
    justify-content: center;
    gap: 10px;
    direction: ltr;
}

.code-box {
    width: 52px;
    height: 58px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    outline: none;
    transition: all 0.2s ease;
}

    .code-box:focus {
        border-color: var(--accent-a);
        box-shadow: 0 0 0 3px var(--focus-ring);
        background: var(--panel-hover);
    }

    .code-box.is-invalid {
        border-color: var(--danger);
        background: var(--danger-soft);
    }

/* ---- ارسال مجدد کد (فقط VerifyCode.cshtml) ---- */
.resend-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.resend-link {
    background: none;
    border: none;
    color: var(--accent-a);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

    .resend-link:disabled {
        color: var(--text-muted);
        cursor: not-allowed;
    }

/* ---- لینک بازگشت (فقط VerifyCode.cshtml) ---- */
.back-link {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

    .back-link i {
        width: 14px;
        height: 14px;
    }

    .back-link:hover {
        color: var(--text-secondary);
    }

/* ---- انتخاب جنسیت به‌صورت دکمه‌ی دوتایی (فقط CompleteProfile.cshtml) ---- */
.gender-toggle-group {
    display: flex;
    gap: 10px;
}

.gender-option {
    flex: 1;
    position: relative;
}

    .gender-option input[type="radio"] {
        position: absolute;
        opacity: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        cursor: pointer;
    }

.gender-option-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--panel);
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

    .gender-option-label i {
        width: 18px;
        height: 18px;
    }

.gender-option input[type="radio"]:checked + .gender-option-label {
    border-color: var(--accent-a);
    background: var(--accent-soft);
    color: var(--text);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.gender-option input[type="radio"]:focus-visible + .gender-option-label {
    border-color: var(--accent-a);
}
