/* ============================================================
   الدخول السريع — المتابعة بحساب Google أو بالبريد (رمز من 6 أرقام)
   صفحات: login.php، auth/code.php، auth/welcome.php، auth/start.php
   ============================================================ */

.qa-wrap { width: min(100%, 460px); margin: 24px auto 48px; padding: 0 16px; }
.qa-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl);
    box-shadow: var(--shadow); padding: 28px 24px; display: flex; flex-direction: column; gap: 16px;
}
.qa-title { margin: 0; font-size: 1.6rem; font-weight: 800; color: var(--ink); text-align: center; line-height: 1.4; }
.qa-sub { margin: 0; color: var(--muted); text-align: center; line-height: 1.8; }
.qa-sub strong { color: var(--ink); direction: ltr; unicode-bidi: isolate; }

.qa-google {
    display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px;
    border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink);
    font: inherit; font-size: 1rem; font-weight: 700; text-decoration: none; cursor: pointer;
}
.qa-google:hover { background: #f7fafb; border-color: #c4d6dc; }
.qa-google:focus-visible, .qa-input:focus-visible, .qa-btn:focus-visible, .qa-choice:focus-within { outline: 3px solid var(--brand-100); outline-offset: 1px; }
.qa-google svg { width: 20px; height: 20px; flex-shrink: 0; }

.qa-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .9rem; }
.qa-or::before, .qa-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.qa-form { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.qa-label { font-weight: 700; color: var(--ink); font-size: .95rem; }
.qa-input {
    width: 100%; min-height: 52px; border: 1px solid var(--line); border-radius: 14px; padding: 0 14px;
    font: inherit; font-size: 1rem; background: #fff; color: var(--ink);
}
.qa-input[dir="ltr"] { text-align: left; }
.qa-btn {
    display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; border: 0;
    border-radius: 14px; background: var(--brand-950); color: #fff; font: inherit; font-size: 1rem; font-weight: 800;
    cursor: pointer; text-decoration: none;
}
.qa-btn:hover { background: var(--brand-900); }
.qa-btn:disabled { opacity: .55; cursor: default; }

.qa-links { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: .92rem; color: var(--muted); }
.qa-links a, .qa-links button { color: var(--brand-800); font-weight: 700; text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; padding: 6px; }
.qa-links a:hover, .qa-links button:hover { text-decoration: underline; }
.qa-note { margin: 0; font-size: .82rem; color: var(--muted); text-align: center; line-height: 1.7; }

/* رمز من 6 أرقام: خانة واحدة كبيرة بمسافات */
.qa-code {
    text-align: center; direction: ltr; font-size: 2rem; font-weight: 800; letter-spacing: .5em;
    padding-inline-start: .5em; min-height: 64px; font-variant-numeric: tabular-nums;
}
.qa-tip { background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 14px; padding: 10px 14px; font-size: .88rem; color: var(--brand-900); line-height: 1.7; }

/* معلم / معلمة */
.qa-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qa-choice { position: relative; display: flex; align-items: center; justify-content: center; min-height: 56px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font-weight: 800; color: var(--ink); cursor: pointer; }
.qa-choice input { position: absolute; opacity: 0; pointer-events: none; }
.qa-choice:has(input:checked) { border: 2px solid var(--brand-700); background: var(--brand-50); color: var(--brand-900); }

/* صفحة الترحيب: بطاقتان */
.qa-wrap.is-wide { width: min(100%, 760px); }
.qa-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.qa-path {
    display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: var(--radius-lg);
    border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); min-height: 190px;
}
.qa-path:hover { border-color: var(--brand-500); box-shadow: var(--shadow); }
.qa-path.is-main { background: linear-gradient(155deg, var(--brand-950), var(--brand-700)); color: #fff; border-color: transparent; }
.qa-path__tag { align-self: flex-start; font-size: .78rem; font-weight: 800; border-radius: 999px; padding: 3px 10px; background: var(--brand-100); color: var(--brand-900); }
.qa-path.is-main .qa-path__tag { background: rgba(255,255,255,.16); color: #fff; }
.qa-path strong { font-size: 1.25rem; font-weight: 800; }
.qa-path span { line-height: 1.7; font-size: .95rem; }
.qa-path.is-main span { color: #d8eef2; }
.qa-path em { margin-top: auto; font-style: normal; font-weight: 800; }

@media (max-width: 600px) {
    .qa-card { padding: 22px 16px; }
    .qa-paths { grid-template-columns: 1fr; }
    .qa-path { min-height: 0; }
    .qa-code { font-size: 1.7rem; letter-spacing: .4em; }
}

/* أداة قادمة: تظهر معطّلة في صفحة الترحيب */
.qa-soon { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 12px 16px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); font-size: .9rem; }
.qa-soon strong { color: var(--ink); opacity: .7; }
.qa-links form { margin: 0; }
.qa-links button:disabled { color: var(--muted); cursor: default; text-decoration: none; }
.qa-wrap .alert { margin: 0; }
.qa-wrap .field-error { color: var(--danger); font-size: .85rem; margin-top: -6px; }
