/* Sign in / sign up / password reset (account/_auth_layout.html).
   Brand panel with an illustrated route on the left, form card on the right;
   on phones the panel becomes a short band above the form. */

.ww-auth body { min-height: 100vh; background: var(--ww-bg); }
.ww-auth-page { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }

/* ── Brand panel ───────────────────────────────────────────────────────── */
.ww-auth-brand {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 28px;
  padding: 36px 44px 28px; color: #FFFFFF;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(72, 199, 142, .35), transparent 60%),
    radial-gradient(90% 70% at 0% 100%, rgba(6, 40, 32, .55), transparent 60%),
    linear-gradient(160deg, #0B7A5C 0%, #08624A 55%, #064836 100%);
}
.ww-auth-logo { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; color: #FFFFFF; }
.ww-auth-logo img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.ww-auth-logo .ww-logo { font-size: 20px; border-color: #FFFFFF; background: #FFFFFF; color: #0B7A5C; }
.ww-auth-logo .ww-logo > span { background: #0E1726; color: #FFFFFF; }
.ww-auth-pitch { max-width: 460px; }
.ww-auth-pitch h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.08; font-weight: 700; letter-spacing: -.03em; color: #FFFFFF; margin: 0 0 12px; }
.ww-auth-pitch p { font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, .82); margin: 0; }

.ww-auth-art { position: relative; flex: 1 1 auto; min-height: 300px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05); overflow: hidden; }
.ww-auth-map { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ww-auth-art {
  background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 28px 28px; background-color: rgba(255, 255, 255, .05);
}
.ww-auth-ic { font-family: 'Material Symbols Outlined'; font-size: 20px; }
.ww-auth-stop text { font: 700 12px var(--ww-font); fill: #FFFFFF; }

.ww-auth-chip {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 12px;
  background: rgba(255, 255, 255, .96); color: #0E1726; border-radius: 12px;
  box-shadow: 0 12px 30px rgba(3, 30, 22, .28), 0 2px 6px rgba(3, 30, 22, .14);
  animation: ww-auth-float 7s ease-in-out infinite;
}
.ww-auth-chip b { display: block; font-size: 13.5px; font-weight: 700; line-height: 1.2; }
.ww-auth-chip small { display: block; font-size: 12px; color: #5E6B7E; line-height: 1.3; }
.ww-auth-chip .material-symbols-outlined { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: #E7F6EE; color: #0B7A5C; font-size: 19px; }
.ww-auth-chip.is-a { left: 6%; top: 8%; }
.ww-auth-chip.is-b { right: 5%; bottom: 8%; animation-delay: -2.4s; }
.ww-auth-chip.is-c { right: 5%; top: 7%; animation-delay: -4.6s; }
.ww-auth-chip.is-c .material-symbols-outlined { background: #EBF0FD; color: #1F4FD1; }
.ww-auth-dot { width: 30px; height: 30px; border-radius: 8px; background: #E7F6EE; position: relative; flex: 0 0 30px; }
.ww-auth-dot::after { content: ''; position: absolute; inset: 10px; border-radius: 50%; background: #12A160; box-shadow: 0 0 0 4px rgba(18, 161, 96, .22); }
@keyframes ww-auth-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.ww-auth-foot { margin: 0; font-size: 12.5px; color: rgba(255, 255, 255, .7); }
.ww-auth-foot a { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .4); }

/* ── Form side ─────────────────────────────────────────────────────────── */
.ww-auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.ww-auth-card { width: 100%; max-width: 410px; }
.ww-auth-h1 { font-size: 28px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; color: var(--ww-ink); margin: 0 0 6px; }
.ww-auth-sub { color: var(--ww-muted); font-size: 15px; margin: 0 0 24px; }
.ww-auth-form .field { margin-bottom: 16px; }
.ww-auth-form .label { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.ww-auth .ww-auth-form .input { height: 46px !important; font-size: 15px !important; border-radius: 9px; background: var(--ww-surface); }
.ww-auth-form .control.has-icons-left .icon { height: 46px; width: 2.6em; color: var(--ww-muted); }
.ww-auth .ww-auth-form .control.has-icons-left .input { padding-left: 2.6em; }
.ww-auth-form .icon .material-symbols-outlined { font-size: 19px; vertical-align: 0; }
.ww-auth-form .help { font-size: 12.5px; color: var(--ww-muted); }
.ww-auth-form .help.is-danger { color: var(--ww-alert-text); }
.ww-auth-form div.help ul { margin: 4px 0 0 1.1em; list-style: disc; }
.ww-auth-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ww-auth-label-row a { font-size: 13px; font-weight: 600; color: var(--ww-pri-text); }

.ww-auth .ww-auth-pass .input { padding-right: 44px; }
.ww-auth-eye { position: absolute; right: 4px; top: 4px; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 7px; background: transparent; color: var(--ww-muted); cursor: pointer; z-index: 4; }
.ww-auth-eye:hover { background: var(--ww-hover); color: var(--ww-ink); }
.ww-auth-eye .material-symbols-outlined { font-size: 20px; vertical-align: 0; }

.ww-auth-check { display: flex; align-items: center; gap: 9px; margin: 4px 0 20px; font-size: 14px; color: var(--ww-ink); cursor: pointer; }
.ww-auth-check input { width: 17px; height: 17px; accent-color: var(--ww-pri); }

.ww-auth-submit { height: 48px; font-size: 15px; font-weight: 600; border-radius: 10px; gap: 6px; }
.ww-auth-submit .material-symbols-outlined { font-size: 20px; transition: transform .15s ease; vertical-align: 0; }
.ww-auth-submit:hover .material-symbols-outlined { transform: translateX(3px); }

.ww-auth-alt { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--ww-line); display: grid; gap: 10px; text-align: center; font-size: 14px; color: var(--ww-muted); }
.ww-auth-alt .button { height: 44px; border-radius: 10px; font-weight: 600; }

.ww-auth-role { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ww-auth-role label { cursor: pointer; }
.ww-auth-role input { position: absolute; opacity: 0; pointer-events: none; }
.ww-auth-role label > span {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px;
  border: 1px solid var(--ww-line-strong); border-radius: 10px; background: var(--ww-surface);
  font-size: 15px; font-weight: 600; color: var(--ww-ink); transition: border-color .12s, background .12s;
}
.ww-auth-role .material-symbols-outlined { font-size: 21px; color: var(--ww-muted); vertical-align: 0; }
.ww-auth-role label:hover > span { border-color: var(--ww-pri); }
.ww-auth-role input:checked + span { border-color: var(--ww-pri); background: var(--ww-pri-soft); color: var(--ww-pri-text); box-shadow: inset 0 0 0 1px var(--ww-pri); }
.ww-auth-role input:checked + span .material-symbols-outlined { color: var(--ww-pri-text); }
.ww-auth-role input:focus-visible + span { box-shadow: var(--ww-focus), inset 0 0 0 1px var(--ww-pri); }
.ww-auth fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }

.ww-auth-msg { padding: 11px 14px; border-radius: 9px; margin-bottom: 16px; font-size: 14px; background: var(--ww-info-soft); color: var(--ww-info-text); }
.ww-auth-msg.is-danger, .ww-auth-msg.is-error { background: var(--ww-alert-soft); color: var(--ww-alert-text); }
.ww-auth-msg.is-success { background: var(--ww-ok-soft); color: var(--ww-ok-text); }
.ww-auth-msg a { color: inherit; font-weight: 600; text-decoration: underline; }
.ww-auth-done { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--ww-pri-soft); color: var(--ww-pri-text); margin-bottom: 18px; }
.ww-auth-done .material-symbols-outlined { font-size: 30px; vertical-align: 0; }

/* ── Phones and small tablets: short brand band over the form ─────────── */
@media screen and (max-width: 900px) {
  .ww-auth-page { grid-template-columns: 1fr; min-height: 0; }
  .ww-auth-brand { padding: calc(18px + env(safe-area-inset-top)) 20px 0; gap: 14px; }
  .ww-auth-pitch h2 { font-size: 24px; margin-bottom: 6px; }
  .ww-auth-pitch p { font-size: 14px; }
  .ww-auth-art { min-height: 150px; height: 150px; flex: none; border-radius: 14px 14px 0 0; border-bottom: 0; }
  .ww-auth-chip { padding: 7px 10px 7px 8px; gap: 8px; }
  .ww-auth-chip.is-a { left: 4%; top: 10%; }
  .ww-auth-chip.is-b { right: 4%; top: auto; bottom: 12%; }
  .ww-auth-chip.is-c, .ww-auth-foot { display: none; }
  .ww-auth-main { padding: 28px 20px 40px; align-items: flex-start; }
  .ww-auth .ww-auth-form .input { font-size: 16px !important; }
}

/* ── Dark ──────────────────────────────────────────────────────────────── */
.ww-auth[data-theme="dark"] .ww-auth-brand { background: radial-gradient(120% 80% at 100% 0%, rgba(43, 185, 140, .22), transparent 60%), linear-gradient(160deg, #0B3F31 0%, #082C23 60%, #061F19 100%); }

@media (prefers-reduced-motion: reduce) {
  .ww-auth-chip { animation: none; }
  .ww-auth-van { display: none; }
}

/* Sign out: who is signing out, and two equal buttons */
.ww-auth-who { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 20px; border: 1px solid var(--ww-line); border-radius: 10px; background: var(--ww-surface); }
.ww-auth-who b { display: block; font-size: 14.5px; color: var(--ww-ink); }
.ww-auth-who small { display: block; font-size: 13px; color: var(--ww-muted); }
.ww-auth-who .ww-avatar { width: 40px; height: 40px; flex: 0 0 40px; font-size: 14px; }
.ww-auth-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ww-auth-actions .button { height: 48px; border-radius: 10px; font-weight: 600; font-size: 15px; gap: 6px; }
.ww-auth-done.is-alert { background: var(--ww-alert-soft); color: var(--ww-alert-text); }

/* New password: strength meter + live checklist */
.ww-pw { margin-top: 8px; }
.ww-pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.ww-pw-meter i { height: 4px; border-radius: 2px; background: var(--ww-track); transition: background .15s; }
.ww-pw.is-0:not(.is-empty) .ww-pw-meter i:nth-child(1) { background: var(--ww-alert); }
.ww-pw.is-1 .ww-pw-meter i:nth-child(-n+1),
.ww-pw.is-2 .ww-pw-meter i:nth-child(-n+2) { background: var(--ww-info); }
.ww-pw.is-3 .ww-pw-meter i:nth-child(-n+3),
.ww-pw.is-4 .ww-pw-meter i { background: var(--ww-ok); }
.ww-pw-label { margin: 6px 0 4px; font-size: 12.5px; font-weight: 600; color: var(--ww-muted); }
.ww-pw.is-0:not(.is-empty) .ww-pw-label { color: var(--ww-alert-text); }
.ww-pw.is-3 .ww-pw-label, .ww-pw.is-4 .ww-pw-label { color: var(--ww-ok-text); }
.ww-pw-rules { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 12px; margin: 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--ww-muted); }
.ww-pw-rules li { display: flex; align-items: center; gap: 6px; line-height: 1.35; }
.ww-pw-rules li::before { content: ''; flex: 0 0 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--ww-line-strong); box-sizing: border-box; }
.ww-pw-rules li.is-ok { color: var(--ww-ink); }
.ww-pw-rules li.is-ok::before { border: 0; background: var(--ww-ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7.2l2.3 2.3 4.7-4.9' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.ww-pw-match { margin-top: 6px; font-size: 12.5px; font-weight: 600; }
.ww-pw-match.is-ok { color: var(--ww-ok-text); }
.ww-pw-match.is-bad { color: var(--ww-alert-text); }
@media screen and (max-width: 420px) { .ww-pw-rules { grid-template-columns: 1fr; } }
