/* =====================================================================
   auth.css — طراحیِ یکدستِ صفحاتِ ورود/ثبت‌نام/بازیابی
   خودبسنده: فقط همین فایل + all.min.css (آیکون) + css2.css (فونت) لازم است.
   ===================================================================== */
* { box-sizing: border-box; }

body.auth-body {
    margin: 0;
    font-family: 'Vazirmatn', -apple-system, 'Segoe UI', Tahoma, sans-serif;
    background: linear-gradient(135deg, #2563eb 0%, #6366f1 55%, #7c3aed 100%);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    color: #0f172a;
}
body.auth-body::before {
    content: ""; position: fixed; inset: 0; pointer-events: none;
    background: radial-gradient(circle at 18% 20%, rgba(255,255,255,.14), transparent 42%),
                radial-gradient(circle at 82% 82%, rgba(255,255,255,.10), transparent 42%);
}

.auth-card {
    position: relative; z-index: 1;
    background: #fff; border-radius: 22px; padding: 2rem;
    width: 100%; max-width: 430px;
    box-shadow: 0 25px 60px rgba(2, 6, 23, .35);
    animation: authIn .4s ease;
}
.auth-card.wide { max-width: 820px; }
@keyframes authIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.auth-logo { text-align: center; margin-bottom: 1.6rem; }
.auth-badge {
    width: 62px; height: 62px; border-radius: 18px; margin: 0 auto .7rem;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #2563eb, #6366f1); color: #fff;
    font-size: 1.7rem; box-shadow: 0 10px 24px rgba(37, 99, 235, .4);
}
.auth-logo h1 { font-size: 1.2rem; margin: 0; color: #0f172a; font-weight: 700; }
.auth-logo p { margin: .35rem 0 0; font-size: .82rem; color: #64748b; }

/* فیلدها */
.form-group { margin-bottom: 1rem; }
.form-group > label, .form-label { display: block; margin-bottom: .4rem; font-size: .83rem; font-weight: 500; color: #334155; }
.form-control {
    width: 100%; padding: .72rem .9rem; border: 1.5px solid #e2e8f0; border-radius: 12px;
    font-family: inherit; font-size: .9rem; color: #0f172a; background: #f8fafc; transition: all .18s ease;
}
.form-control:focus { outline: none; border-color: #6366f1; background: #fff; box-shadow: 0 0 0 3px rgba(99,102,241,.15); }
textarea.form-control { resize: vertical; min-height: 60px; }
select.form-control { cursor: pointer; }

/* دکمه‌ها */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.3rem; border-radius: 12px; font-family: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; border: none; text-decoration: none; transition: all .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(135deg, #2563eb, #6366f1); color: #fff; box-shadow: 0 10px 22px rgba(37,99,235,.32); }
.btn-primary:hover { box-shadow: 0 14px 28px rgba(37,99,235,.42); color: #fff; }
.btn-secondary { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.btn-secondary:hover { background: #e2e8f0; color: #0f172a; }
.btn-success { background: linear-gradient(135deg, #10b981, #34d399); color: #fff; box-shadow: 0 10px 22px rgba(16,185,129,.32); }

/* چک‌باکس: استایل در pages.css (.form-check) */
.form-check { margin-bottom: 1rem; }

/* جداکنندهٔ «یا» */
.or-divider { display: flex; align-items: center; gap: .8rem; color: #94a3b8; font-size: .78rem; margin: 1.1rem 0; }
.or-divider::before, .or-divider::after { content: ""; height: 1px; flex: 1; background: #e2e8f0; }

/* لینک‌ها */
.link-muted { display: block; text-align: center; margin-top: .9rem; color: #64748b; font-size: .83rem; text-decoration: none; }
.link-muted:hover { color: #6366f1; }
.auth-links { text-align: center; margin-top: 1.2rem; font-size: .85rem; color: #64748b; }
.auth-links a, .links a { color: #6366f1; text-decoration: none; font-weight: 600; }

/* هشدارها — مبنای استایل در pages.css (اعلان‌های سراسری) */
@keyframes notifyIn {
    from { opacity: 0; transform: translateY(-10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.7;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.07);
    animation: notifyIn 0.38s cubic-bezier(0.16, 1, 0.3, 1) both;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}
.alert::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 10px;
    bottom: 10px;
    width: 4px;
    border-radius: 4px;
}
.alert > i:first-child {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}
.alert-error, .alert-danger { background: linear-gradient(135deg, rgba(239,68,68,0.11), rgba(239,68,68,0.05)); border-color: rgba(239,68,68,0.28); color: #b91c1c; }
.alert-error::before, .alert-danger::before { background: linear-gradient(180deg, #f87171, #ef4444); }
.alert-error > i:first-child, .alert-danger > i:first-child { background: rgba(239,68,68,0.14); color: #ef4444; }
.alert-success { background: linear-gradient(135deg, rgba(16,185,129,0.11), rgba(16,185,129,0.05)); border-color: rgba(16,185,129,0.28); color: #047857; }
.alert-success::before { background: linear-gradient(180deg, #34d399, #10b981); }
.alert-success > i:first-child { background: rgba(16,185,129,0.16); color: #10b981; }
.alert-info { background: linear-gradient(135deg, rgba(59,130,246,0.11), rgba(99,102,241,0.05)); border-color: rgba(59,130,246,0.28); color: #1d4ed8; }
.alert-info::before { background: linear-gradient(180deg, #60a5fa, #3b82f6); }
.alert-info > i:first-child { background: rgba(59,130,246,0.14); color: #3b82f6; }
.text-danger { color: #dc2626; font-size: .76rem; display: block; margin-top: .3rem; }
.text-muted { color: #94a3b8; font-size: .76rem; }
.text-center { text-align: center; }
.links { text-align: center; margin-top: 1.2rem; font-size: .85rem; }

/* فرمِ چندستونه */
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.col { min-width: 0; }
@media (max-width: 620px) { .row { grid-template-columns: 1fr; gap: 0; } }

/* input با دکمهٔ کناری (چشم/تأیید) */
.input-group { display: flex; align-items: stretch; border: 1.5px solid #e2e8f0; border-radius: 12px; background: #f8fafc; overflow: hidden; transition: all .18s ease; }
.input-group:focus-within { border-color: #6366f1; background: #fff; box-shadow: 0 0 0 3px rgba(99,102,241,.15); }
.input-group .form-control { border: none; background: transparent; box-shadow: none; }
.input-group .form-control:focus { box-shadow: none; }
.input-group-text { padding: 0 .9rem; display: flex; align-items: center; color: #94a3b8; background: transparent; border: none; cursor: pointer; }

/* مراحلِ ثبت‌نام (wizard) */
.steps { display: flex; justify-content: space-between; margin-bottom: 1.8rem; position: relative; }
.steps::before { content: ''; position: absolute; top: 20px; left: 0; right: 0; height: 2px; background: #e2e8f0; z-index: 1; }
.step { position: relative; z-index: 2; text-align: center; flex: 1; }
.step-icon { width: 40px; height: 40px; background: #fff; border: 2px solid #e2e8f0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: #94a3b8; }
.step.active .step-icon { background: linear-gradient(135deg, #2563eb, #6366f1); border-color: transparent; color: #fff; }
.step.completed .step-icon { background: #10b981; border-color: transparent; color: #fff; }
.step-text { font-size: .72rem; margin-top: .4rem; color: #64748b; }
.step.active .step-text { color: #6366f1; font-weight: 600; }
.step-content { display: none; } .step-content.active { display: block; }

.wizard-steps { position: relative; }

.wizard-nav-primary {
    position: relative;
    min-width: 120px;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .6rem;
}

.wizard-nav-primary .btn-primary[hidden],
.wizard-nav-primary .btn-success[hidden] {
    display: none !important;
}
@media (max-width: 620px) { .steps { display: none; } }

/* انتخابِ روشِ واحد */
.method-buttons { display: flex; gap: .5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.method-btn { flex: 1; min-width: 110px; padding: .65rem; background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 12px; font-family: inherit; font-size: .82rem; cursor: pointer; color: #475569; transition: all .18s ease; }
.method-btn.active { background: linear-gradient(135deg, #2563eb, #6366f1); color: #fff; border-color: transparent; }
.method-section { margin-bottom: 1rem; }

/* قدرتِ رمز */
.password-strength { margin-top: .5rem; }
.progress { height: 5px; background: #e2e8f0; border-radius: 3px; overflow: hidden; }
.progress-bar { height: 100%; width: 0; transition: width .3s ease; }
.progress-bar.weak { background: #ef4444; } .progress-bar.medium { background: #f59e0b; } .progress-bar.strong { background: #10b981; }

.form-buttons { display: flex; justify-content: space-between; gap: .6rem; margin-top: 1.6rem; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; }

/* خانه‌های کدِ یک‌بارمصرف (OTP) */
.otp-inputs { display: flex; gap: .6rem; justify-content: center; direction: ltr; }
.otp-inputs input { width: 48px; height: 56px; text-align: center; font-size: 1.4rem; font-weight: 700; font-family: inherit; border: 1.5px solid #e2e8f0; border-radius: 12px; background: #f8fafc; color: #0f172a; transition: all .18s ease; }
.otp-inputs input:focus { outline: none; border-color: #6366f1; background: #fff; box-shadow: 0 0 0 3px rgba(99,102,241,.15); }

/* جعبهٔ اطلاعات */
.info-box { background: #eff6ff; border: 1px solid #dbeafe; padding: 1rem; border-radius: 12px; margin: 1.2rem 0; text-align: right; color: #1e40af; font-size: .85rem; line-height: 1.7; display: flex; gap: .5rem; align-items: flex-start; }
.info-box i { margin-top: .15rem; flex-shrink: 0; }

/* واریانت‌های رنگیِ نشان */
.auth-badge.warning { background: linear-gradient(135deg, #f59e0b, #fbbf24); box-shadow: 0 10px 24px rgba(245,158,11,.4); }
.auth-badge.success { background: linear-gradient(135deg, #10b981, #34d399); box-shadow: 0 10px 24px rgba(16,185,129,.4); }

/* اعتبارسنجیِ سفارشی (جایگزینِ پیام‌های پیش‌فرضِ مرورگر) */
.form-control.is-invalid { border-color: #ef4444; background: #fef2f2; }
.form-control.is-invalid:focus { box-shadow: 0 0 0 3px rgba(239,68,68,.15); }
.input-group.is-invalid { border-color: #ef4444; background: #fef2f2; box-shadow: 0 0 0 3px rgba(239,68,68,.12); }
.field-error { display: flex; align-items: center; gap: .35rem; color: #dc2626; font-size: .78rem; margin-top: .4rem; animation: fieldShake .3s ease; }
@keyframes fieldShake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-4px); } 60% { transform: translateX(4px); } }

/* Loading دکمه — overlay + spinner وسط */
.btn-loading-wrap { position: relative; display: inline-flex; }
button.is-loading, .btn.is-loading, .btn-loading-wrap.is-loading, input[type="submit"].is-loading {
    position: relative; pointer-events: none; cursor: wait;
}
button.is-loading::before, .btn.is-loading::before, .btn-loading-wrap.is-loading::before, input[type="submit"].is-loading::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit;
    background: rgba(255, 255, 255, 0.42); z-index: 1;
}
.btn-spinner {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    z-index: 2; margin: 0; border-radius: inherit; pointer-events: none;
}
.btn-spinner i { font-size: 1.05em; color: inherit; }

/* Toast — صفحات auth */
.app-toast-host {
    position: fixed;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    left: 20px;
    z-index: 10050;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    width: min(380px, calc(100vw - 40px));
    pointer-events: none;
}
.app-toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border-radius: 14px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.22);
    animation: notifyIn 0.38s cubic-bezier(0.16, 1, 0.3, 1) both;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.86rem;
    font-weight: 500;
    color: #fff;
}
.app-toast__icon {
    width: 32px; height: 32px; border-radius: 9px;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0; background: rgba(255, 255, 255, 0.18);
}
.app-toast__text { flex: 1; min-width: 0; }
.app-toast__close {
    flex-shrink: 0; width: 28px; height: 28px; border: none; border-radius: 8px;
    background: rgba(255, 255, 255, 0.12); color: #fff; cursor: pointer;
}
.app-toast--success { background: linear-gradient(135deg, #059669, #10b981); }
.app-toast--error { background: linear-gradient(135deg, #dc2626, #ef4444); }
.app-toast--warning { background: linear-gradient(135deg, #d97706, #f59e0b); }
.app-toast--info { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.app-notify--out { animation: notifyOut 0.28s ease forwards; }
@keyframes notifyOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(-8px); }
}

/* =====================================================================
   Login / 2FA — split layout (modern)
   ===================================================================== */
html.auth-html {
    height: 100%;
    overflow: hidden;
}

body.auth-body.auth-login-page {
    display: block;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
    background: #0f172a;
}

body.auth-body.auth-login-page::before {
    display: none !important;
}

.auth-shell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    direction: ltr; /* بنر چپ، فرم راست */
}

.auth-panel-brand,
.auth-panel-form {
    direction: rtl;
}

.auth-panel-brand--security {
    background: linear-gradient(145deg, #065f46 0%, #059669 40%, #0d9488 100%);
}
.auth-panel-brand--security::after {
    background: rgba(255,255,255,.07);
}
.auth-panel-brand--security .auth-brand-features i { color: #6ee7b7; }

.auth-panel {
    height: 100%;
    min-height: 0;
    overflow: hidden;
}
.auth-panel-brand {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    background: linear-gradient(145deg, #1e3a8a 0%, #4338ca 45%, #6d28d9 100%);
    overflow: hidden;
    color: #fff;
}
.auth-panel-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,.12), transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,.08), transparent 40%);
    pointer-events: none;
}
.auth-panel-brand::after {
    content: "";
    position: absolute;
    width: 420px; height: 420px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    bottom: -120px; left: -80px;
    pointer-events: none;
}

.auth-brand-content {
    position: relative; z-index: 1;
    max-width: 420px;
}
.auth-brand-logo {
    display: flex; align-items: center; gap: .75rem;
    margin-bottom: 2rem;
}
.auth-brand-icon {
    width: 48px; height: 48px; border-radius: 14px;
    background: rgba(255,255,255,.18);
    backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    border: 1px solid rgba(255,255,255,.22);
}
.auth-brand-name { font-size: 1.15rem; font-weight: 700; letter-spacing: -.02em; }
.auth-brand-headline {
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 800; line-height: 1.35;
    margin: 0 0 1rem;
    letter-spacing: -.03em;
}
.auth-brand-desc {
    font-size: .95rem; line-height: 1.75;
    color: rgba(255,255,255,.78);
    margin: 0 0 1.75rem;
}
.auth-brand-features {
    list-style: none; padding: 0; margin: 0 0 2.5rem;
    display: flex; flex-direction: column; gap: .65rem;
}
.auth-brand-features li {
    display: flex; align-items: center; gap: .6rem;
    font-size: .88rem; color: rgba(255,255,255,.88);
}
.auth-brand-features i { color: #86efac; font-size: .95rem; }

.auth-brand-visual { position: relative; height: 120px; flex-shrink: 0; }
.auth-float-card {
    position: absolute;
    display: flex; align-items: center; gap: .55rem;
    padding: .65rem 1rem;
    background: rgba(255,255,255,.14);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 14px;
    font-size: .82rem; font-weight: 600;
    box-shadow: 0 8px 32px rgba(0,0,0,.15);
    animation: floatCard 4s ease-in-out infinite;
}
.auth-float-card i { opacity: .85; }
.auth-float-card--1 { top: 0; right: 0; animation-delay: 0s; }
.auth-float-card--2 { top: 50px; right: 90px; animation-delay: .8s; }
.auth-float-card--3 { top: 90px; right: 10px; animation-delay: 1.6s; }
@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.auth-panel-form {
    display: flex; align-items: center; justify-content: center;
    padding: 2rem 1.5rem;
    background: #f1f5f9;
    overflow: hidden;
}

.auth-form-card {
    width: 100%; max-width: 420px;
    background: #fff;
    border-radius: 24px;
    padding: 2.5rem 2.25rem;
    box-shadow: 0 8px 40px rgba(15, 23, 42, .08);
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.auth-form-inner {
    width: 100%; max-width: 400px;
}
.auth-form-header { text-align: center; margin-bottom: 1.75rem; }
.auth-form-header h1 {
    font-size: 1.55rem; font-weight: 800;
    margin: .65rem 0 .35rem; color: #0f172a;
    letter-spacing: -.02em;
}
.auth-form-header p { margin: 0; font-size: .88rem; color: #64748b; }

.auth-badge--sm {
    width: 52px; height: 52px; border-radius: 16px;
    margin: 0 auto; font-size: 1.25rem;
}
.auth-badge--shield {
    background: linear-gradient(135deg, #059669, #10b981);
    box-shadow: 0 10px 24px rgba(16, 185, 129, .35);
}

/* Icon inputs */
.input-icon-wrap {
    position: relative;
    display: flex; align-items: center;
}
.input-icon {
    position: absolute; right: .9rem;
    color: #94a3b8; font-size: .9rem;
    pointer-events: none; z-index: 1;
}
.input-icon-wrap .form-control { padding-right: 2.6rem; }
.input-icon-wrap--toggle .form-control { padding-left: 2.6rem; }
.input-toggle {
    position: absolute; left: .5rem;
    width: 36px; height: 36px;
    border: none; background: transparent;
    color: #94a3b8; cursor: pointer;
    border-radius: 8px; display: flex;
    align-items: center; justify-content: center;
    transition: color .15s;
}
.input-toggle:hover { color: #6366f1; }

.form-control-lg { padding: .85rem 1rem; font-size: 1rem; }

.auth-form-row {
    display: flex; align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem; gap: .5rem;
}
.auth-form-row--end { justify-content: flex-end; }
.auth-link-inline {
    font-size: .82rem; color: #6366f1;
    text-decoration: none; font-weight: 600;
    white-space: nowrap;
}
.auth-link-inline:hover { color: #4f46e5; text-decoration: underline; }

.btn-lg { padding: .9rem 1.4rem; font-size: .95rem; border-radius: 14px; }
.btn-outline {
    background: #fff; color: #475569;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(15,23,42,.04);
}
.btn-outline:hover {
    background: #f8fafc; border-color: #cbd5e1;
    color: #0f172a; transform: translateY(-1px);
}
.btn-ghost {
    background: transparent; color: #64748b;
    border: none; margin-top: .75rem;
    font-size: .85rem; font-weight: 500;
}
.btn-ghost:hover { color: #6366f1; background: #f1f5f9; transform: none; }

.auth-footer-text {
    text-align: center; margin-top: 1.5rem;
    font-size: .88rem; color: #64748b;
}
.auth-footer-text a {
    color: #6366f1; font-weight: 700;
    text-decoration: none;
}
.auth-footer-text a:hover { text-decoration: underline; }

.or-divider span {
    background: #fff; padding: 0 .5rem;
    position: relative; z-index: 1;
}

/* OTP — ۶ رقم (۲FA) */
.tfa-otp-inputs { margin: .5rem 0 0; gap: .5rem; }
.tfa-otp-inputs input {
    width: 46px; height: 54px;
    font-size: 1.35rem;
}
.tfa-hint {
    display: flex; align-items: center; justify-content: center; gap: .4rem;
    margin: .85rem 0 0; font-size: .78rem; color: #64748b;
}
.tfa-hint i { color: #6366f1; font-size: .85rem; }

.d-none { display: none !important; }

/* Join building */
.join-field-hint {
    display: block;
    margin-top: .45rem;
    font-size: .78rem;
    color: #94a3b8;
}
.join-validate-btn {
    gap: .4rem;
    padding: 0 1rem !important;
    font-family: inherit;
    font-size: .82rem;
    font-weight: 600;
    color: #6366f1 !important;
    border-right: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    transition: background .15s, color .15s;
}
.join-validate-btn:hover:not(:disabled) {
    background: #eef2ff !important;
    color: #4f46e5 !important;
}
.join-validate-btn:disabled {
    opacity: .7;
    cursor: wait;
}
.join-validate-btn span { white-space: nowrap; }
.join-invite-result {
    margin-top: .25rem;
    animation: joinFadeIn .28s ease;
}
@keyframes joinFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.join-building-card {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    padding: 1rem 1.05rem;
    background: linear-gradient(135deg, rgba(99,102,241,.08), rgba(59,130,246,.05));
    border: 1px solid rgba(99,102,241,.22);
    border-radius: 14px;
}
.join-building-card__icon {
    width: 40px; height: 40px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #6366f1, #818cf8);
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(99,102,241,.3);
}
.join-building-card__body {
    flex: 1;
    min-width: 0;
}
.join-building-card__body strong {
    display: block;
    font-size: .95rem;
    color: #0f172a;
    margin-bottom: .2rem;
}
.join-building-card__body span {
    display: block;
    font-size: .8rem;
    color: #64748b;
    line-height: 1.5;
}
.join-building-card__check {
    color: #10b981;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: .15rem;
}
.join-invite-result .input-icon-wrap .form-control {
    appearance: none;
    -webkit-appearance: none;
    padding-left: 2rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2394a3b8' d='M1.4.3L6 4.9 10.6.3 12 1.7 6 7.7 0 1.7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left .9rem center;
}

@media (max-width: 900px) {
    html.auth-html { overflow: auto; height: auto; }
    body.auth-body.auth-login-page {
        height: auto;
        max-height: none;
        min-height: 100dvh;
        overflow-x: hidden;
        overflow-y: auto;
    }
    .auth-shell {
        grid-template-columns: 1fr;
        direction: rtl;
        height: auto;
        max-height: none;
        min-height: 100dvh;
    }
    .auth-panel-brand { display: none; }
    .auth-panel-form {
        min-height: 100dvh;
        padding: 1.5rem 1rem;
        overflow: visible;
    }
    body.auth-body.auth-login-page { background: linear-gradient(160deg, #eef2ff 0%, #f8fafc 40%, #f1f5f9 100%); }
    .auth-form-card { padding: 2rem 1.75rem; }
}
@media (max-height: 720px) and (min-width: 901px) {
    .auth-panel-brand { padding: 2rem 2rem; }
    .auth-brand-headline { font-size: 1.65rem; }
    .auth-brand-features { margin-bottom: 1.5rem; }
    .auth-brand-visual { height: 90px; }
    .auth-form-card { padding: 2rem 1.75rem; }
}
@media (max-width: 420px) {
    .auth-form-card { padding: 1.5rem 1.25rem; border-radius: 20px; }
    .auth-form-row { flex-direction: column; align-items: flex-start; }
    .tfa-otp-inputs { gap: .35rem; }
    .tfa-otp-inputs input { width: 40px; height: 48px; font-size: 1.15rem; }
}
