/* Sign-in presentation and the shared signed-in identity strip.
   style.css owns the founder-approved palette. This file styles login.html and
   account_menu.html without changing the practice room's teaching layout. */

/* Keep the login page self-contained and readable on a laptop or a phone. */
.login-page { min-height: 100vh; display: flex; flex-direction: column; }
.login-header { width: min(1120px, calc(100% - 64px)); margin-inline: auto; padding-block: 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.login-header > a:last-child { font-size: 12px; color: var(--muted); }
.login-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 100px; width: min(1020px, calc(100% - 64px)); margin: auto; padding-block: 70px; }
.login-welcome h1 { font: 52px/1.1 var(--serif); letter-spacing: -2px; font-weight: 400; margin: 20px 0 25px; }
.login-welcome h1 em { color: var(--teal-strong); }
.login-welcome > p:not(.eyebrow):not(.login-caption) { max-width: 330px; color: var(--muted); font-size: 14px; line-height: 1.85; }
.login-caption { font: italic 16px/1.5 var(--serif); color: var(--blue); }

/* Three overlapping circles echo the site's circle-culture motif. These are
   decorative and are hidden from screen readers in the template. */
.login-circles { width: 215px; height: 177px; position: relative; margin: 38px 0 27px; }
.login-circles i { width: 130px; height: 130px; position: absolute; border: 1px solid var(--ochre-line); border-radius: 50%; }
.login-circles i:nth-child(2) { left: 80px; border-color: var(--teal-line); }
.login-circles i:nth-child(3) { left: 40px; top: 46px; border-color: var(--rose-line); }
.login-circles span { position: absolute; top: 64px; left: 92px; color: var(--teal-strong); font-size: 28px; }

/* The real Google button occupies a stable space, with visible status and retry
   messages for blocked scripts, failed verification and interrupted connections. */
.login-card { min-width: 0; padding: 38px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 35px var(--panel-shadow); }
.login-card h2 { font: 38px/1.2 var(--serif); margin: 18px 0; }
.login-card > p:not(.eyebrow) { color: var(--muted); font-size: 13px; line-height: 1.8; }
#google-sign-in { margin-block: 29px; min-height: 93px; }
/* Reserve room while Google loads. Its own stylesheet sizes the real button;
   leave overflow visible so keyboard focus and translated labels are not cut. */
#google-button { min-height: 44px; }
#login-status { font-size: 11px; color: var(--muted); line-height: 1.6; margin: 13px 0 0; }
#login-error { font-size: 13px; color: var(--rose-strong); }
#login-retry { display: inline-block; font-size: 12px; color: var(--teal-strong); text-decoration: underline; text-underline-offset: 3px; }
.login-card .login-data-note { font-size: 11px; }
.login-preview-note { padding-top: 21px; margin-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.7; }
.login-preview-note strong { color: var(--ochre-strong); font-weight: 600; }
.login-preview-note p { margin: 8px 0 0; }
.login-footer { text-align: center; color: var(--muted); padding: 25px; font: italic 14px/1.6 var(--serif); }

/* This strip identifies the current account and offers a normal POST sign-out.
   Long email addresses wrap rather than widening a narrow screen. */
.account-menu { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 12px; padding: 9px 0; color: var(--muted); font-size: 11px; }
.account-menu strong { font-weight: 500; color: var(--body-text); overflow-wrap: anywhere; }
.account-profile { color:var(--teal-strong); text-decoration:underline; text-underline-offset:3px; }
.account-menu form { margin: 0; }
.account-menu button { border: 1px solid var(--line-strong); border-radius: 4px; padding: 7px 10px; background: var(--surface); color: var(--teal-strong); font-size: 11px; }
.account-menu button:hover { background: var(--teal-soft); }

/* Stack the introduction and sign-in card before either column gets cramped. */
@media (max-width: 800px) {
  .login-header { width: calc(100% - 40px); padding-block: 24px; }
  .login-header > a:last-child { max-width: 100px; font-size: 10px; text-align: right; }
  .login-layout { width: min(480px, calc(100% - 40px)); grid-template-columns: 1fr; gap: 24px; padding-block: 42px; }
  .login-welcome h1 { font-size: 40px; letter-spacing: -1.3px; }
  .login-circles, .login-caption { display: none; }
  .login-card { padding: 26px 22px; }
  .login-card h2 { font-size: 32px; }
}
