/* ============================================================
   صفحات احراز هویت محفل — Login / Register (سبک اسکای‌روم)
   ============================================================ */

.auth-wrap {
    min-height: 100vh;
    display: flex;
    background: #fff;
}

/* ---------- ستون فرم ---------- */
.auth-form-col {
    flex: 0 0 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
}

.auth-box {
    width: 100%;
    max-width: 400px;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.auth-logo-mark {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .28);
}

.auth-logo-name {
    font-size: 2.1rem;
    font-weight: 800;
    color: #1d4ed8;
    line-height: 1.6;
}

.auth-logo-caption {
    text-align: center;
    font-size: 12.5px;
    color: #8a93a8;
    margin-bottom: 30px;
}

.auth-heading {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin-bottom: 6px;
}

.auth-lead {
    font-size: 13px;
    color: #8a93a8;
    text-align: center;
    margin-bottom: 26px;
}

/* ---------- فیلدها ---------- */
.auth-field { margin-bottom: 16px; }

.auth-field label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 7px;
}

    .auth-field label .req { color: #ef4444; }

.auth-input-wrap { position: relative; }

.auth-input {
    width: 100%;
    height: 50px;
    border: 1.5px solid #e6e9f2;
    border-radius: 12px;
    background: #f7f8fc;
    padding: 0 16px;
    font-family: inherit;
    font-size: 14px;
    color: #1e293b;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

    .auth-input::placeholder { color: #a5aec4; font-size: 13px; }

    .auth-input:focus {
        border-color: #16a34a;
        background: #fff;
        box-shadow: 0 0 0 4px rgba(22, 163, 74, .10);
    }

.auth-eye-btn {
    position: absolute;
    inset-inline-end: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #9aa3b8;
    padding: 8px;
    cursor: pointer;
    line-height: 1;
    border-radius: 8px;
}

    .auth-eye-btn:hover { color: #16a34a; }

/* ---------- پیشوند موبایل +98 ---------- */
.auth-phone-prefix {
    position: absolute;
    inset-inline-start: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 10px;
    border-inline-end: 1.5px solid #e6e9f2;
    color: #64748b;
    font-size: 13.5px;
    font-weight: 700;
    pointer-events: none;
}

    .auth-phone-prefix svg { border-radius: 3px; }

.auth-input-phone {
    padding-inline-start: 78px;
    direction: ltr !important;
    text-align: left;
}

/* ---------- ردیف مرا به خاطر بسپار / فراموشی ---------- */
.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: #4b5563;
    cursor: pointer;
    user-select: none;
}

    .auth-remember input {
        width: 16px;
        height: 16px;
        accent-color: #16a34a;
        cursor: pointer;
    }

.auth-link {
    font-size: 12.5px;
    color: #15803d;
    text-decoration: none;
}

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

/* ---------- دکمه اصلی ---------- */
.auth-btn {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #16234d, #24376e);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 10px 24px rgba(22, 35, 77, .30);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}

    .auth-btn:hover:not(:disabled) {
        filter: brightness(1.12);
        transform: translateY(-1px);
        box-shadow: 0 12px 28px rgba(22, 35, 77, .36);
    }

    .auth-btn:disabled { opacity: .6; cursor: not-allowed; box-shadow: none; }

.auth-foot {
    text-align: center;
    font-size: 13px;
    color: #8a93a8;
    margin-top: 26px;
}

/* ---------- خطا / هشدار ---------- */
.auth-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 13px;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 18px;
}

.auth-note {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    font-size: 12.5px;
    border-radius: 10px;
    padding: 10px 14px;
    margin-top: 18px;
    line-height: 1.8;
}

/* ---------- OTP ---------- */
.auth-otp-hint {
    font-size: 13px;
    color: #64748b;
    text-align: center;
    margin-bottom: 18px;
    line-height: 1.9;
}

    .auth-otp-hint b { color: #0f172a; }

.auth-otp-input {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 12px;
    padding-left: 26px;
    direction: ltr;
}

.auth-otp-timer {
    text-align: center;
    font-size: 12.5px;
    color: #8a93a8;
    margin: 14px 0 4px;
}

    .auth-otp-timer b { color: #15803d; }

.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: 0;
    color: #64748b;
    font-size: 12.5px;
    font-family: inherit;
    cursor: pointer;
    padding: 4px 0;
    margin-top: 12px;
}

    .auth-back-link:hover { color: #15803d; }

.auth-dev-code {
    direction: ltr;
    display: inline-block;
    background: #ecfdf5;
    border: 1px dashed #16a34a;
    color: #15803d;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 6px;
    border-radius: 8px;
    padding: 2px 12px 2px 18px;
}

/* ---------- پیام موفقیت ---------- */
.auth-success {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    font-size: 13px;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 18px;
}

/* ---------- جداکننده «یا» ---------- */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: #a5aec4;
    font-size: 12px;
}

    .auth-divider::before,
    .auth-divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: #e6e9f2;
    }

/* ---------- دکمه ثانویه ---------- */
.auth-btn-outline {
    background: #fff;
    color: #24376e;
    border: 1.5px solid #d5dbea;
    box-shadow: none;
    text-decoration: none;
}

    .auth-btn-outline:hover:not(:disabled) {
        filter: none;
        border-color: #16a34a;
        color: #15803d;
        transform: translateY(-1px);
        box-shadow: 0 8px 20px rgba(22, 163, 74, .14);
    }

/* ---------- نشانگر مراحل ---------- */
.auth-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.auth-step {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12.5px;
    font-weight: 700;
    background: #eef1f7;
    color: #8a93a8;
    transition: background .25s ease, color .25s ease;
}

    .auth-step.active {
        background: #16234d;
        color: #fff;
        box-shadow: 0 0 0 4px rgba(22, 35, 77, .12);
    }

    .auth-step.done {
        background: #dcfce7;
        color: #15803d;
    }

.auth-step-line {
    flex: 0 0 34px;
    height: 2px;
    border-radius: 2px;
    background: #e6e9f2;
}

    .auth-step-line.done { background: #86efac; }

/* ---------- سنجش قدرت گذرواژه ---------- */
.auth-meter {
    height: 5px;
    border-radius: 4px;
    background: #eef1f7;
    margin-top: 8px;
    overflow: hidden;
}

.auth-meter-fill {
    display: block;
    height: 100%;
    border-radius: 4px;
    transition: width .25s ease, background .25s ease;
}

    .auth-meter-fill.weak   { background: #ef4444; }
    .auth-meter-fill.fair   { background: #f59e0b; }
    .auth-meter-fill.good   { background: #38bdf8; }
    .auth-meter-fill.strong { background: #16a34a; }

.auth-meter-label {
    font-size: 11.5px;
    color: #8a93a8;
    margin-top: 5px;
}

    .auth-meter-label.mismatch { color: #dc2626; }
    .auth-meter-label.match { color: #15803d; }

/* ---------- باکس‌های جداگانهٔ OTP ---------- */
.otp-boxes {
    display: flex;
    gap: 9px;
    justify-content: center;
    margin-bottom: 16px;
}

.otp-box {
    width: 48px;
    height: 56px;
    border: 1.5px solid #e6e9f2;
    border-radius: 12px;
    background: #f7f8fc;
    text-align: center;
    font-family: inherit;
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    outline: none;
    caret-color: #16a34a;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

    .otp-box:focus {
        border-color: #16a34a;
        background: #fff;
        box-shadow: 0 0 0 4px rgba(22, 163, 74, .10);
    }

/* ---------- کد امنیتی عددی ---------- */
.auth-captcha {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-captcha-q {
    flex: 0 0 auto;
    min-height: 50px;
    min-width: 118px;
    max-width: 58%;
    padding: 6px 16px;
    border: 1.5px dashed #c7d2e4;
    border-radius: 12px;
    background:
        repeating-linear-gradient(-45deg, #f7f8fc 0 6px, #eef1f7 6px 12px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 19px;
    color: #334155;
    user-select: none;
}

    .auth-captcha-q b { font-weight: 800; color: #16234d; }

.auth-captcha-words { font-weight: 700; color: #16234d; font-size: 14.5px; line-height: 1.6; }

.auth-captcha-input { flex: 1; }

.auth-captcha-refresh {
    flex: 0 0 auto;
    width: 42px;
    height: 50px;
    border: 1.5px solid #e6e9f2;
    border-radius: 12px;
    background: #fff;
    color: #8a93a8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color .15s ease, border-color .15s ease;
}

    .auth-captcha-refresh:hover { color: #16a34a; border-color: #86efac; }

/* ---------- ورودی‌های لاتین ---------- */
.auth-input-ltr { direction: ltr; text-align: left; }

/* ---------- راهنما و وضعیت فیلد ---------- */
.auth-field-hint {
    font-size: 11.5px;
    color: #a5aec4;
    margin-top: 6px;
    line-height: 1.7;
}

.auth-field-status {
    font-size: 12px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .auth-field-status.ok { color: #15803d; }
    .auth-field-status.bad { color: #dc2626; }
    .auth-field-status.checking { color: #8a93a8; }

/* ---------- چک‌لیست قوانین گذرواژه ---------- */
.auth-rules {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 12px;
}

    .auth-rules li {
        font-size: 11.5px;
        color: #a5aec4;
        display: flex;
        align-items: center;
        gap: 6px;
        transition: color .2s ease;
    }

        .auth-rules li::before {
            content: "";
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: #d4dae6;
            transition: background .2s ease;
        }

        .auth-rules li.ok { color: #15803d; }
        .auth-rules li.ok::before { background: #16a34a; }

/* ---------- انتخاب حوزه فعالیت ---------- */
.auth-select {
    appearance: none;
    cursor: pointer;
    padding-inline-end: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%238a93a8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 14px center;
}

    .auth-select:invalid { color: #a5aec4; }

/* ---------- کارت سرویس آزمایشی در صفحهٔ پایانی ---------- */
.auth-trial {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 22px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .auth-trial b { font-size: 13.5px; color: #166534; }
    .auth-trial span { font-size: 12px; color: #4b7a5e; }

/* ---------- صفحهٔ پایانی موفقیت ---------- */
.auth-done {
    text-align: center;
    padding: 14px 0 6px;
}

    .auth-done p {
        font-size: 14px;
        font-weight: 600;
        color: #1e293b;
        margin: 14px 0 22px;
    }

.auth-done-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    color: #16a34a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ---------- پنل برند (سمت چپ، تیره) ---------- */
.auth-brand-col {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(45, 212, 191, .16), transparent 60%),
        radial-gradient(700px 460px at 8% 108%, rgba(56, 189, 248, .12), transparent 55%),
        linear-gradient(160deg, #0a1226 0%, #101d40 55%, #0a1226 100%);
    padding: 48px 32px;
}

    .auth-brand-col::before,
    .auth-brand-col::after {
        content: "";
        position: absolute;
        border-radius: 50%;
        pointer-events: none;
    }

    .auth-brand-col::before {
        width: 480px; height: 480px;
        top: -180px; inset-inline-start: -160px;
        background: rgba(45, 212, 191, .05);
    }

    .auth-brand-col::after {
        width: 360px; height: 360px;
        bottom: -140px; inset-inline-end: -110px;
        background: rgba(56, 189, 248, .05);
    }

.auth-brand-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 720px;
    width: 100%;
}

.auth-brand-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #2dd4bf, #38bdf8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.9;
}

.auth-brand-sub {
    color: rgba(255, 255, 255, .62);
    font-size: 14px;
    margin-bottom: 40px;
}

.auth-brand-shot {
    width: 100%;
    max-width: 660px;
    margin: 0 auto;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .45));
    animation: auth-float 7s ease-in-out infinite;
}

@keyframes auth-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ---------- موبایل ---------- */
@media (max-width: 991.98px) {
    .auth-brand-col { display: none; }
    .auth-form-col { flex: 1; padding: 32px 18px; }
}
