/* Sign-in panel for the Tajweed course. Uses the lesson pages' own colour variables (course.css). */
.acct-btn {
  margin-left: auto; background: var(--green, #1f5c4a); color: var(--green-ink, #fff); border: 0;
  border-radius: 999px; padding: 7px 16px; font: 600 0.92rem/1 var(--font-body, system-ui, sans-serif); cursor: pointer;
}
.acct-btn + .theme-toggle { margin-left: 0; }
.acct-btn:hover { filter: brightness(1.08); }

.acct-dialog {
  width: min(94vw, 430px); padding: 26px 24px 22px; border: 1px solid var(--line, #e2d7c1); border-radius: var(--radius, 14px);
  background: var(--surface, #fffdf8); color: var(--ink, #2a251e); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  font-family: var(--font-body, system-ui, sans-serif);
}
.acct-dialog::backdrop { background: rgba(10, 8, 5, 0.55); }
.acct-close {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: var(--band, #efe7d7); color: var(--ink, #2a251e); font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.acct-body h2 { font-family: var(--font-head, Georgia, serif); font-size: 1.35rem; margin: 0 36px 8px 0; }
.acct-body p { margin: 0 0 12px; line-height: 1.55; }
.acct-age { display: flex; align-items: center; gap: 10px; margin: 14px 0; font-weight: 600; cursor: pointer; }
.acct-age input { width: 20px; height: 20px; accent-color: var(--green, #1f5c4a); }
.acct-google, .acct-primary, .acct-plain, .acct-danger {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 18px;
  border-radius: 999px; font: 600 0.98rem/1 var(--font-body, system-ui, sans-serif); cursor: pointer;
}
.acct-google { width: 100%; background: #fff; color: #1f1f1f; border: 1px solid #dadce0; }
.acct-google .g { font: 700 1.1rem/1 Arial, sans-serif; color: #4285f4; }
.acct-primary { background: var(--green, #1f5c4a); color: var(--green-ink, #fff); border: 0; }
.acct-plain { background: transparent; color: var(--ink, #2a251e); border: 1px solid var(--line, #e2d7c1); }
.acct-danger { background: #a3302a; color: #fff; border: 0; }
.acct-link { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; font: inherit; cursor: pointer; }
button:disabled { opacity: 0.45; cursor: not-allowed; }
.acct-or { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: var(--muted, #7a6f5e); font-size: 0.9rem; }
.acct-or::before, .acct-or::after { content: ""; flex: 1; border-top: 1px solid var(--line, #e2d7c1); }
.acct-email { display: grid; gap: 10px; }
.acct-email input {
  min-height: 44px; padding: 10px 14px; border: 1px solid var(--line, #e2d7c1); border-radius: 10px;
  background: var(--bg, #f6f1e7); color: var(--ink, #2a251e); font: inherit;
}
.acct-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 6px; }
.acct-status { min-height: 1.2em; margin-top: 12px !important; color: var(--green, #1f5c4a); font-weight: 600; }
.acct-small { font-size: 0.86rem; color: var(--muted, #7a6f5e); }
.acct-small a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Sign-in nudge (signed out, lesson pages): a card at the bottom of the screen. */
.acct-nudge {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 40;
  width: min(94vw, 520px); padding: 16px 18px; border-radius: var(--radius, 14px);
  background: var(--surface, #fffdf8); color: var(--ink, #2a251e); border: 1px solid var(--line, #e2d7c1);
  border-top: 4px solid var(--green, #1f5c4a); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  font-family: var(--font-body, system-ui, sans-serif); animation: acct-up 0.35s ease;
}
.acct-nudge p { margin: 0 0 10px; line-height: 1.5; }
@keyframes acct-up { from { transform: translate(-50%, 20px); opacity: 0; } to { transform: translateX(-50%); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .acct-nudge { animation: none; } }

/* In the site header: keep the button on one line and compact on phones. */
.site-header .acct-btn { white-space: nowrap; flex: none; }
@media (max-width: 480px) { .site-header .acct-btn { padding: 7px 12px; font-size: 0.86rem; } }
@media (max-width: 380px) { .site-header .acct-btn { padding: 6px 10px; font-size: 0.82rem; } }
