/*
  طراحی صفحات احراز هویت (ورود/ثبت‌نام/تایید شماره)
  ------------------------------------------------
  مفهوم بصری: چون این محصول درباره‌ی «مسیر» بین مبدأ و مقصده، امضای بصری صفحه
  یه خط مسیر نقطه‌چین بین دو نقطه‌ست (دقیقاً همون چیزی که در نقشه‌ی بار می‌بینن) -
  نه یه گرادیانت ژنریک بی‌ربط به موضوع.

  فونت: Vazirmatn (فونت فارسی رایگان، از jsDelivr) برای هماهنگی کامل با متن فارسی،
  به‌جای فونت پیش‌فرض سیستم.
*/

:root {
    --auth-navy: #0f1b3c;
    --auth-navy-light: #1a2b56;
    --auth-blue: #3d63d4;
    --auth-amber: #f2a93b;
    --auth-bg: #f7f8fb;
    --auth-text-muted: #6b7280;
    --auth-radius: 16px;
}

.auth-font {
    /* منسوخ - الان از brand-font در theme.css استفاده می‌شود؛ این کلاس فقط برای سازگاری با کد قدیمی نگه داشته شده */
    font-family: 'Vazirmatn', sans-serif;
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--auth-bg);
}

@media (min-width: 900px) {
    .auth-shell {
        flex-direction: row-reverse;
    }
}

/* --- پنل هرو: مسیر نقطه‌چین بین مبدأ و مقصد --- */
.auth-hero {
    background: radial-gradient(circle at 30% 20%, var(--auth-navy-light), var(--auth-navy) 70%);
    color: #fff;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 900px) {
    .auth-hero {
        width: 42%;
        padding: 4rem;
    }
}

.auth-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.8rem;
    width: fit-content;
    margin-bottom: 1.5rem;
}

.auth-hero h1 {
    font-weight: 800;
    font-size: 1.9rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.auth-hero p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    max-width: 320px;
}

/* خط مسیر نقطه‌چین + دو نقطه‌ی مبدأ/مقصد - امضای بصری صفحه */
.auth-route {
    margin-top: 2.5rem;
    position: relative;
    height: 90px;
}

.auth-route svg {
    width: 100%;
    height: 100%;
}

.auth-route .route-path {
    stroke: rgba(255, 255, 255, 0.35);
    stroke-width: 2;
    stroke-dasharray: 6 8;
    fill: none;
    animation: auth-route-flow 3.5s linear infinite;
}

@keyframes auth-route-flow {
    to { stroke-dashoffset: -140; }
}

.auth-route .route-dot {
    fill: var(--auth-amber);
}

.auth-route .route-dot-end {
    fill: #4ade80;
}

.auth-route .route-label {
    fill: rgba(255, 255, 255, 0.55);
    font-size: 10px;
    font-family: 'Vazirmatn', sans-serif;
}

/* --- کارت فرم --- */
.auth-form-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
}

.auth-card {
    width: 100%;
    max-width: 380px;
    background: #fff;
    border-radius: var(--auth-radius);
    padding: 2rem 1.75rem;
    box-shadow: 0 10px 40px rgba(15, 27, 60, 0.08);
}

.auth-card-wide {
    max-width: 460px;
}

.auth-card h4 {
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.auth-card .auth-subtitle {
    color: var(--auth-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
}

.auth-card .form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
}

.auth-card .form-control,
.auth-card .form-select {
    border-radius: 10px;
    border: 1.5px solid #e5e7eb;
    padding: 0.65rem 0.9rem;
}

.auth-card .form-control:focus,
.auth-card .form-select:focus {
    border-color: var(--auth-blue);
    box-shadow: 0 0 0 3px rgba(61, 99, 212, 0.12);
}

.auth-btn-primary {
    background: var(--auth-blue);
    border-color: var(--auth-blue);
    border-radius: 10px;
    font-weight: 700;
    padding: 0.7rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.auth-btn-primary:hover {
    background: #3455ba;
    border-color: #3455ba;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(61, 99, 212, 0.25);
}

.auth-link {
    color: var(--auth-blue);
    font-weight: 600;
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}

/* کامپوننت پلاک - کمی جذاب‌تر از حالت خام قبلی */
.plate-widget {
    background: #fff;
    border: 2px solid #1a2b56;
    border-radius: 10px;
    padding: 6px;
}

/* حالت خطا: کل کانتینر پلاک قرمز می‌شه (نه هرکدوم از ۴ فیلد داخلش جدا) تا شلوغ نشه */
.plate-widget.is-invalid-group {
    border-color: #dc3545 !important;
}

.plate-widget::before {
    content: 'IR';
    display: none; /* رزرو برای آینده - نگه‌داشته شده برای گسترش احتمالی */
}
