/* Palm Eye Cloud portal — signing in without passwords (2026-10-13): the sign-in, invitation, sign-in-link and
 * "secure your account" pages (authkit.js), "Your sign-in" (signin-card.js) and the invitation-based People card.
 * The living backdrop and the shared micro-interactions are ceremony.css (.eye-auth); this file is layout and the
 * few motions of its own — transform / opacity only, nothing moves under prefers-reduced-motion.
 * Copyright © 2026 Palm Digitalz. All rights reserved. */

/* ---------- the card ---------- */
.auth .auth-card { width: min(420px, 100%); padding: 30px 28px 22px; }
.auth .auth-card.wide { width: min(520px, 100%); }
.auth-brand { margin-bottom: 22px; }
.auth-word { display: flex; align-items: baseline; gap: 5px; font-size: 19px; letter-spacing: -.015em; }
.auth-word-a { font-weight: 700; }
.auth-word-b { font-weight: 400; color: var(--secondary); }
.auth-kicker { font-size: var(--t-foot); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #E8A33D; margin-bottom: 6px; }
.auth-title { font-size: 25px; line-height: 1.18; font-weight: 700; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.auth-lede { margin: 8px 0 0; color: var(--secondary); font-size: var(--t-body); line-height: 1.5; text-wrap: pretty; }
.auth-body { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.auth-body form { display: flex; flex-direction: column; gap: 12px; }
.auth .btn.block { height: 44px; font-size: var(--t-body); border-radius: 12px; }
.auth .btn .ico { flex: none; }
.auth-small { margin: 2px 0 0; font-size: var(--t-subhead); line-height: 1.5; color: var(--tertiary); text-align: center; }

/* ---------- Google / Microsoft, passkey ---------- */
.auth-sso { display: flex; flex-direction: column; gap: 10px; }
.auth-sso.inline { flex-direction: row; flex-wrap: wrap; }
.auth-sso.inline .btn { width: auto; height: 36px; font-size: var(--t-callout); }
.btn-sso { gap: 10px; background: var(--surface); border-color: var(--hairline); color: var(--label); }
.btn-sso:hover:not(:disabled) { background: var(--surface2); }
.sso-logo { display: inline-flex; width: 18px; height: 18px; align-items: center; justify-content: center; }
.btn-sso.is-going .sso-logo { animation: ssoPulse 1s ease-in-out infinite; }
.auth-passkey { gap: 10px; }

/* "or get a link by email" */
.auth-or { display: flex; align-items: center; gap: 12px; margin: 6px 0 0; color: var(--tertiary); font-size: 12px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--hairline); }

/* keep me signed in */
.auth-remember { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--surface2); cursor: pointer; }
.auth-remember input { margin-top: 2px; width: 16px; height: 16px; accent-color: #E8A33D; flex: none; }
.auth-remember > span { display: flex; flex-direction: column; gap: 2px; }
.auth-remember-a { font-size: var(--t-callout); font-weight: 600; }
.auth-remember-b { font-size: 12px; color: var(--tertiary); }

/* the quiet links: "Sign in with a password", "Sign out" */
.auth-quiet { align-self: center; border: 0; background: none; color: var(--secondary); font-size: 13px; padding: 6px 8px; border-radius: 8px; text-decoration: underline; text-decoration-color: var(--hairline); text-underline-offset: 3px; }
.auth-quiet:hover { color: var(--label); text-decoration-color: currentColor; }
.auth-password { padding-top: 4px; }

/* ---------- "Check your inbox" ---------- */
.auth-sent { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 0 2px; }
.auth-env { margin-bottom: 14px; overflow: visible; }
.auth-env-body { fill: color-mix(in srgb, #E8A33D 12%, transparent); stroke: #E8A33D; stroke-width: 2; }
.auth-env-flap { stroke: #E8A33D; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.auth-env-seal { fill: #E8A33D; transform-origin: 52px 12px; }
.auth-sent-title { font-size: 19px; font-weight: 700; letter-spacing: -.015em; }
.auth-sent-text { margin: 6px 0 0; color: var(--secondary); font-size: 14px; line-height: 1.5; }
.auth-sent-to { margin: 8px 0 0; font-weight: 600; font-size: 14px; word-break: break-all; }
.auth-sent-actions { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; justify-content: center; }

/* ---------- the invitation ---------- */
.auth-invite-facts { display: grid; gap: 1px; border-radius: 12px; overflow: hidden; background: var(--hairline); }
.auth-fact { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; background: var(--surface2); font-size: var(--t-callout); }
.auth-fact-k { color: var(--tertiary); }
.auth-fact-v { font-weight: 600; text-align: right; word-break: break-all; }
.auth-accept { box-shadow: 0 10px 28px -14px #E8A33D; }
.auth-passkey-offer { display: flex; flex-direction: column; gap: 8px; }

/* ---------- the user menu's link ---------- */
a.menu-item { color: inherit; text-decoration: none; }

/* ---------- People (invitations) ---------- */
.people-sum { display: flex; gap: 16px; flex-wrap: wrap; margin: 0 0 12px; font-size: 13px; color: var(--secondary); }
.people-sum b { color: var(--label); font-variant-numeric: tabular-nums; margin-right: 2px; }
.people-more { display: flex; flex-direction: column; gap: 4px; }
.people-more-row { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--hairline); }
.people-more-row:first-child { border-top: 0; }
.people-more-row .muted { font-size: var(--t-subhead); margin-top: 2px; }
.invite-list { display: flex; flex-direction: column; gap: 12px; max-height: 52vh; overflow: auto; }
.invite-row { display: flex; flex-direction: column; gap: 6px; }
.invite-to { font-weight: 600; font-size: var(--t-callout); word-break: break-all; }

/* ---------- Your sign-in ---------- */
.si-card .share-h { margin: 22px 0 6px; }
.si-card .share-h:first-child { margin-top: 0; }
.si-card .btn-row, .si-card .auth-sso.inline { margin-bottom: 4px; }
.si-list { display: flex; flex-direction: column; margin-bottom: 10px; }
.si-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--hairline-soft, var(--hairline)); }
.si-row:first-child { border-top: 0; }
.si-row .pill { margin-left: 8px; vertical-align: 1px; }
.si-ico { display: inline-flex; width: 30px; height: 30px; border-radius: 9px; align-items: center; justify-content: center; background: color-mix(in srgb, #E8A33D 14%, transparent); color: #E8A33D; flex: none; }
.si-empty { margin: 4px 0 8px; font-size: 13px; }

@media (prefers-reduced-motion: no-preference) {
  /* one quick arrival on the portal's curve — no staggered cascade, no overshoot (2026-10-23) */
  .auth-sent, .auth-body, .si-row { animation: authRise var(--dur-sheet) var(--ease) both; }
  .auth-env-body, .auth-env-flap, .auth-env-seal { animation: authEnvIn var(--dur-sheet) var(--ease) both; }
}
@keyframes authRise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes authEnvIn { from { opacity: 0; transform: translateY(8px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes authSeal { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: scale(1); } }
@keyframes ssoPulse { 50% { opacity: .45; } }

@media (max-width: 480px) {
  .auth .auth-card { padding: 24px 18px 18px; }
  .auth-title { font-size: 22px; }
  .people-more-row { flex-direction: column; align-items: stretch; }
}
