/* ============================================================
   AUTH (ورود / ثبت‌نام) — سیستم طراحی فیروزه‌ای
   ============================================================ */
.auth-page {
    --au-50: #f0fdfa;
    --au-100: #ccfbf1;
    --au-200: #99f6e4;
    --au-300: #5eead4;
    --au-400: #2dd4bf;
    --au-500: #14b8a6;
    --au-600: #0d9488;
    --au-700: #0f766e;
    --au-800: #115e59;
    --au-900: #134e4a;

    position: relative;
    min-height: 100vh;
    overflow: hidden;
    font-family: inherit;
    background:
        radial-gradient(900px 420px at 85% -5%, rgba(45, 212, 191, 0.14), transparent 60%),
        radial-gradient(700px 380px at 8% 0%, rgba(20, 184, 166, 0.12), transparent 55%),
        linear-gradient(180deg, var(--au-50) 0%, #f4fbfa 100%);
}

/* بلاب‌های شناور پس‌زمینه */
.auth-blobs {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.auth-blobs span {
    position: absolute;
    border-radius: 50%;
    filter: blur(55px);
    opacity: 0.5;
}
.auth-blobs span:nth-child(1) {
    width: 26rem; height: 26rem;
    background: rgba(45, 212, 191, 0.22);
    top: -8rem; right: -7rem;
    animation: au-float 16s ease-in-out infinite;
}
.auth-blobs span:nth-child(2) {
    width: 20rem; height: 20rem;
    background: rgba(20, 184, 166, 0.16);
    bottom: -6rem; left: -6rem;
    animation: au-float 20s ease-in-out infinite reverse;
}
.auth-blobs span:nth-child(3) {
    width: 12rem; height: 12rem;
    background: rgba(153, 246, 228, 0.25);
    top: 45%; left: 40%;
    animation: au-float 24s ease-in-out infinite;
    animation-delay: -8s;
}
@keyframes au-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50%      { transform: translateY(2.5rem) scale(1.06); }
}

/* پنل بصری معرفی */
.auth-visual {
    position: relative;
    overflow: hidden;
    padding: 2.75rem;
    border-radius: 1.5rem;
    background: linear-gradient(155deg, var(--au-700) 0%, var(--au-900) 100%);
    color: #ecfeff;
    box-shadow: 0 24px 60px rgba(15, 118, 110, 0.35);
    animation: au-rise 0.6s ease both;
}
.auth-visual-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}
.auth-visual-blob.b1 {
    width: 16rem; height: 16rem;
    background: rgba(94, 234, 212, 0.18);
    top: -5rem; left: -5rem;
}
.auth-visual-blob.b2 {
    width: 12rem; height: 12rem;
    background: rgba(45, 212, 191, 0.14);
    bottom: -4rem; right: -3rem;
}
.auth-visual-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(94, 234, 212, 0.15);
    border: 1px solid rgba(94, 234, 212, 0.35);
    color: var(--au-200);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.4rem;
}
.auth-visual-title {
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.5;
    margin-bottom: 0.6rem;
    color: #f0fdfa;
    position: relative;
    z-index: 1;
}
.auth-visual-sub {
    color: rgba(204, 251, 241, 0.85);
    margin-bottom: 1.8rem;
    position: relative;
    z-index: 1;
}
.auth-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    z-index: 1;
}
.auth-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(94, 234, 212, 0.18);
}
.auth-feature-ic {
    flex: 0 0 auto;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.8rem;
    background: rgba(94, 234, 212, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.auth-features b { display: block; color: #f0fdfa; font-size: 0.95rem; }
.auth-features small { color: rgba(204, 251, 241, 0.75); }
.auth-social {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
    z-index: 1;
    color: rgba(204, 251, 241, 0.9);
}

/* کارت فرم */
.auth-card {
    background: #ffffff;
    border: 1px solid rgba(13, 148, 136, 0.12);
    border-radius: 1.5rem;
    box-shadow: 0 20px 55px rgba(15, 118, 110, 0.14);
    padding: 2.5rem 2.25rem;
    animation: au-rise 0.6s ease both;
}
@keyframes au-rise {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
.auth-card-header { margin-bottom: 1.6rem; }
.auth-hello { font-size: 2rem; display: inline-block; animation: au-wave 2.2s ease-in-out infinite; transform-origin: 70% 70%; }
@keyframes au-wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-14deg); }
    75% { transform: rotate(10deg); }
}
.auth-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--au-800);
    margin: 0.2rem 0 0.3rem;
}
.auth-subtitle {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.8;
}

/* هشدار خطا */
.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    border-radius: 0.9rem;
    background: rgba(214, 41, 62, 0.08);
    border: 1px solid rgba(214, 41, 62, 0.3);
    color: #a91f31;
    font-size: 0.9rem;
    margin-bottom: 1.3rem;
}

/* فیلدها */
.auth-field { margin-bottom: 1.15rem; }
.auth-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.45rem;
}
.auth-req { color: #d6293e; }
.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.auth-input-ic {
    position: absolute;
    right: 1rem;
    color: var(--au-500);
    font-size: 1.05rem;
    pointer-events: none;
    z-index: 2;
}
.auth-input {
    width: 100%;
    padding: 0.85rem 2.9rem 0.85rem 1rem;
    border: 1.5px solid #e2f1ef;
    border-radius: 0.9rem;
    background: #f8fefd;
    font-size: 0.98rem;
    color: #0f172a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.auth-input:focus {
    outline: none;
    border-color: var(--au-500);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.14);
}
.auth-input::placeholder { color: #a8bcc2; }
.auth-input-ltr { direction: ltr; text-align: left; }
.auth-input-ltr::placeholder { direction: ltr; text-align: left; }

.auth-toggle {
    position: absolute;
    left: 0.6rem;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 1.05rem;
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 0.5rem;
    transition: color 0.2s ease;
    z-index: 2;
}
.auth-toggle:hover { color: var(--au-600); }

.auth-forgot {
    font-size: 0.82rem;
    color: var(--au-600);
    text-decoration: none;
    font-weight: 600;
}
.auth-forgot:hover { color: var(--au-700); text-decoration: underline; }

.auth-error {
    margin-top: 0.4rem;
    font-size: 0.8rem;
    color: #c81e39;
}

/* دکمه اصلی گرادیانی */
.auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.6rem;
    border: none;
    border-radius: 0.9rem;
    background: linear-gradient(135deg, var(--au-500) 0%, var(--au-600) 100%);
    color: #ffffff;
    font-size: 1.02rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(13, 148, 136, 0.32);
    transition: transform 0.18s ease, box-shadow 0.25s ease, filter 0.2s ease;
}
.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(13, 148, 136, 0.4);
    filter: brightness(1.05);
    color: #ffffff;
}
.auth-btn:active { transform: translateY(0); }

/* دکمه ثانویه */
.auth-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.6rem;
    border-radius: 0.9rem;
    border: 1.5px solid var(--au-200);
    background: #ffffff;
    color: var(--au-700);
    font-weight: 700;
    font-size: 0.98rem;
    text-decoration: none;
    transition: all 0.2s ease;
}
.auth-secondary-btn:hover {
    background: var(--au-50);
    border-color: var(--au-400);
    color: var(--au-800);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(20, 184, 166, 0.15);
}

/* جداکننده */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 1.4rem 0;
    color: #94a3b8;
    font-size: 0.82rem;
}
.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.auth-terms {
    text-align: center;
    color: #94a3b8;
    margin-top: 1.1rem;
}

/* گرید دوستونه فرم ثبت‌نام */
.auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
}

/* موبایل */
@media (max-width: 991.98px) {
    .auth-card { padding: 1.9rem 1.5rem; }
}
@media (max-width: 575.98px) {
    .auth-grid { grid-template-columns: 1fr; }
    .auth-card { padding: 1.6rem 1.2rem; border-radius: 1.2rem; }
    .auth-title { font-size: 1.45rem; }
}

/* کاهش حرکت */
@media (prefers-reduced-motion: reduce) {
    .auth-page *,
    .auth-page *::before,
    .auth-page *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
