/* Theme 2.0: sign-in / register drawer (+ the thin /login/ and /register/ host page). Owner: Account/Auth agent.
   Loaded on every Theme 2.0 page for signed-out visitors (loader). Tokens and t2-* components only: no hex, weights 400/500/700. */

.au { display: block; }
.au-view { display: none; }
.au-view.is-active { display: block; animation: au-in 0.24s var(--ease) both; }
@keyframes au-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .au-view.is-active { animation: none; } }

/* follow context (traffic brief E). The shared follow component also injects .t2-follow-ctx into the register view: the drawer already shows the context (both views), so hide the duplicate */
.au .t2-follow-ctx { display: none; }
.au-intent { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding: 14px; border-radius: var(--rad-tile); border: 1px solid var(--grid); background: var(--ghost); }
.au-intent:not([hidden]) ~ .au-view .au-title { margin-top: 18px; }
.au-intent__logo { flex: none; width: 40px; height: 40px; border-radius: 10px; overflow: hidden; background: var(--seg); display: grid; place-items: center; }
.au-intent__logo img { width: 100%; height: 100%; object-fit: contain; }
.au-intent__txt { min-width: 0; }
.au-intent__t { margin: 0; font-size: 15px; font-weight: 500; color: var(--tx); overflow-wrap: anywhere; }
.au-intent__s { margin: 3px 0 0; line-height: 1.45; }

.au-title { margin-top: 24px; font-size: 28px; font-weight: 400; line-height: 1.2; }
.au-lead { margin-top: 8px; color: var(--t2); }

/* OAuth providers: real links, two columns */
.au-oauth { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: 24px; }
.au-oauth__btn { height: 44px; width: 100%; gap: 10px; border-radius: var(--rad-btn-l); font-size: 14px; color: var(--tx); text-decoration: none; }
.au-oauth__btn svg { width: 18px; height: 18px; flex: none; }
.au-oauth__btn:hover { text-decoration: none; }

.au-or { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--td); font-size: 12px; }
.au-or::before, .au-or::after { content: ''; flex: 1; height: 1px; background: var(--grid); }

.au-form { display: grid; gap: 16px; }
.au-pw { position: relative; display: block; }
.au-pw .t2-input { padding-right: 48px; }
.au-eye { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; border-radius: var(--rad-btn); color: var(--td); cursor: pointer; }
.au-eye:hover { color: var(--tx); background: var(--seg); }
.au-eye svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.au-eye[aria-pressed="true"] { color: var(--tx); }

.au-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.au-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--t2); cursor: pointer; }
.au-check input { width: 16px; height: 16px; accent-color: var(--r2); }

.au-submit { width: 100%; }
.au-submit[disabled] { cursor: progress; }
.au-foot { margin-top: 20px; font-size: 13px; color: var(--t2); }
.au-strong { color: var(--tx); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.au-legal { margin-top: 2px; line-height: 1.5; }
.au-legal a { text-decoration: underline; text-underline-offset: 3px; }
.au [hidden] { display: none !important; }

@media (max-width: 460px) { .au-oauth { grid-template-columns: 1fr; } }
@media (max-width: 760px) { #t2Auth .t2-modal-x { width: 44px; height: 44px; top: 8px !important; right: 8px !important; } }   /* 44px tap on phones (nav.php sets the offset inline) */

/* /login/ and /register/ host page: the drawer is the UI, this is only the calm backdrop behind it */
.au-host { display: grid; place-items: center; min-height: 60vh; text-align: center; }
.au-host .t2-panel { max-width: 520px; width: 100%; padding: 32px; display: grid; gap: 14px; justify-items: center; }
