/* صفحات حساب المتعلّم: تسجيل، دخول، تفعيل.
   بطاقة واحدة في وسط الصفحة — لا شيء يزاحم النموذج. */

.learn-auth-page .auth-main {
    min-height: 72vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(48px, 9vw, 110px) var(--gutter);
}

.auth-card {
    width: 100%;
    max-width: 560px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: clamp(26px, 5vw, 44px);
}

.auth-card .section-kicker { margin-bottom: 14px; }

.auth-title {
    margin: 0 0 10px;
    font-size: clamp(28px, 4.4vw, 40px);
    line-height: 1.15;
    color: var(--paper);
}

.auth-lede {
    margin: 0 0 26px;
    color: var(--muted);
    line-height: 1.75;
}

/* ── النموذج ─────────────────────────────────────────────────────────── */

.auth-form { display: grid; gap: 18px; }

.auth-field { display: grid; gap: 7px; }

.auth-field > span {
    font-size: 14px;
    font-weight: 600;
    color: var(--paper);
}

.auth-field > small {
    font-size: 12.5px;
    color: var(--quiet);
    line-height: 1.6;
}

.auth-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 15px;
    font: inherit;
    font-size: 15px;
    color: var(--paper);
    background: var(--page);
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}

.auth-field input:focus {
    outline: none;
    border-color: var(--lime);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--lime) 22%, transparent);
}

.auth-field input::placeholder { color: var(--quiet); }

/* كلمتا المرور جنباً إلى جنب على الشاشات الواسعة */
.auth-row {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr 1fr;
}

.auth-submit {
    margin-top: 4px;
    justify-content: center;
    width: 100%;
}

.auth-alt {
    margin: 2px 0 0;
    font-size: 14.5px;
    color: var(--muted);
    text-align: center;
}

.auth-alt a {
    color: var(--lime);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* رابط الاستعادة: يلتصق بحقل كلمة المرور فوقه، ويميل للطرف
   الابتدائيّ حتّى لا ينافس زرّ الدخول على المنتصف */
.auth-forgot {
    margin: -6px 0 2px;
    font-size: 13.5px;
    text-align: start;
}

.auth-forgot a {
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .18s ease;
}

.auth-forgot a:hover,
.auth-forgot a:focus-visible {
    color: var(--lime);
}

.auth-form--inline {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    text-align: center;
}

/* فخّ البوتات: مخفيّ بلا display:none — بعض الروبوتات تتجاهل المخفيّ صراحةً */
.auth-trap {
    position: absolute;
    inset-inline-start: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ── الرسائل ─────────────────────────────────────────────────────────── */

.auth-errors {
    margin: 0 0 22px;
    padding: 14px 18px;
    list-style: none;
    background: rgba(220, 90, 70, .12);
    border: 1px solid rgba(220, 90, 70, .4);
    border-radius: 12px;
    color: #ffc9be;
    font-size: 14.5px;
    line-height: 1.7;
}

.auth-errors li + li { margin-top: 6px; }

.auth-note { line-height: 1.75; color: var(--muted); }
.auth-note h2 { margin: 0 0 10px; font-size: 21px; color: var(--paper); }
.auth-note p { margin: 0 0 14px; }
.auth-note p:last-child { margin-bottom: 0; }

.auth-note--good {
    padding: 20px 22px;
    background: color-mix(in srgb, var(--lime) 9%, transparent);
    border: 1px solid color-mix(in srgb, var(--lime) 34%, transparent);
    border-radius: 12px;
}

.auth-note--bad {
    padding: 20px 22px;
    background: rgba(220, 90, 70, .1);
    border: 1px solid rgba(220, 90, 70, .34);
    border-radius: 12px;
}

@media (max-width: 560px) {
    .auth-row { grid-template-columns: 1fr; }
}
