/* Register page as the Piko apps' account card (CloudAccountHero + CloudAuthForm): one centred
   card with the Piko mark, title, labelled fields on a soft surface, consent, one primary action,
   "or", Continue with Google, and a way back to signing in. Scoped to this page only: register.css
   still styles the success page unchanged. */
.register-card-page {
  --field: #f2f2f4;
}
:root[data-theme="dark"] .register-card-page { --field: #1c1c1e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .register-card-page { --field: #1c1c1e; } }

.register-card-page main { padding: 40px 0 56px; }
.register-card-page .register-layout { display: block; }
.register-card-page .register-card {
  width: min(100%, 440px); margin: 0 auto; padding: 28px 28px 22px;
  border: 0; border-radius: 28px; background: var(--canvas); box-shadow: none;
}

/* CloudAccountHero: the mark (72pt), title2 600, subheadline secondary; 12pt apart. */
.register-card-page .account-hero { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 4px 0 12px; margin-bottom: 16px; text-align: center; }
.register-card-page .story-piko { width: 96px; height: 96px; margin: 0; --piko-drift-y: 3px; }
.register-card-page .story-piko::after { display: none; }
.register-card-page .story-piko .register-piko-button { width: 96px; }
.register-card-page .story-piko img { filter: drop-shadow(0 8px 14px var(--shadow)); }
.register-card-page .piko-touch-hint, .register-card-page .piko-motion-toggle { display: none; }
.register-card-page .account-hero h1 { margin: 0; font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: 0; overflow-wrap: anywhere; }
.register-card-page .account-sub { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; }

/* Fields: a label above a soft surface, no outline until focused (PikoInputSurface). */
.register-card-page .field { margin-bottom: 16px; }
.register-card-page .field > label { margin-bottom: 6px; font-size: 15px; font-weight: 500; }
.register-card-page .field input {
  min-height: 48px; padding: 12px 14px; border: 1px solid transparent; border-radius: 14px; background: var(--field);
  transition: border-color .15s ease-out;
}
.register-card-page .field input:focus { border-color: var(--ink); outline: 0; }
.register-card-page .field input:focus-visible { outline: 0; }
.register-card-page .field input::placeholder { color: var(--muted); opacity: .7; }
.register-card-page .field input[aria-invalid="true"] { border-color: var(--error); }
.register-card-page .password-wrap input { padding-right: 64px; }
.register-card-page .password-toggle { top: 2px; right: 2px; min-width: 52px; min-height: 44px; color: var(--ink); font-size: 13px; font-weight: 500; border-radius: 12px; }
.register-card-page .strength { margin-top: 6px; font-size: 13px; color: var(--ink); }
.register-card-page .strength[data-level="0"] { color: var(--muted); }
.register-card-page .field-error { font-size: 13px; }
.register-card-page .hint { font-size: 12px; }

/* Security check stays (the website signs up through it); quieter, inside the card's rhythm. */
.register-card-page .captcha { margin: 4px 0 16px; padding: 14px 0 0; }
.register-card-page .captcha legend { font-size: 15px; font-weight: 500; }
.register-card-page .captcha-top img { border-radius: 12px; border-color: transparent; }
.register-card-page .captcha-actions button { font-size: 13px; }

/* Consent row as CloudLegalConsent: check, "I have read and agree to", the two documents. */
.register-card-page .consent-group { margin: 8px 0 12px; }
.register-card-page .consent { font-size: 14px; color: var(--muted); }
.register-card-page .consent-check span { color: var(--ink); }
.register-card-page .consent-links a { color: var(--ink); }
.register-card-page .consent-group .field-error { font-size: 13px; }

/* PikoButtonStyle: ink, rounded, full width; the Google button is the quiet variant. */
.register-card-page .primary-button, .register-card-page .google-button { min-height: 50px; border-radius: 14px; font-size: 16px; font-weight: 600; }
.register-card-page .google-button { border: 0; background: var(--field); }
.register-card-page .primary-button:not(:disabled):active, .register-card-page .google-button:not(:disabled):active { transform: scale(.98); }
.register-card-page .separator { margin: 14px 0; font-size: 13px; }

/* "Already have an account? Sign in" (CloudAuthForm mode prompt). */
.register-card-page .mode-switch { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 0 6px; margin: 10px 0 0; font-size: 15px; }
.register-card-page .mode-switch span { color: var(--muted); }
.register-card-page .mode-switch a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
.register-card-page .mode-switch a:hover { text-decoration: underline; }
.register-card-page .form-status { text-align: center; font-size: 13px; }
.register-card-page .form-status:empty { min-height: 0; margin: 0; }

.register-card-page .card-footnote { margin: 14px 0 0; padding-top: 14px; text-align: center; font-size: 12px; }
.register-card-page .account-by { margin: 10px 0 0; text-align: center; color: var(--muted); font-size: 13px; }
.register-card-page .account-by strong { color: var(--ink); font-weight: 600; letter-spacing: .02em; }

@media (max-width: 600px) {
  .register-card-page main { padding: 20px 0 36px; }
  .register-card-page .register-card { padding: 16px 4px 18px; border-radius: 0; }
  .register-card-page .story-piko, .register-card-page .story-piko .register-piko-button { width: 80px; }
  .register-card-page .story-piko { height: 80px; }
  .register-card-page .consent-links { padding-left: 0; }
}
@media (max-height: 400px) { .register-card-page .story-piko, .register-card-page .story-piko .register-piko-button { width: 64px; height: 64px; } }
