/* Nova Login - page styles from the Claude Design "Nova Login" file.
 *
 * Layout and colours live inline in templates/auth/*.html, exactly as in the
 * design. This sheet carries what inline styles cannot: keyframes, the focus
 * and hover states (the design's style-focus / style-hover attributes, which
 * must win over the inline base style, hence !important), and notices.
 */
body { background: var(--nv-f6f6fa); -webkit-font-smoothing: antialiased; }

.na { line-height: normal; }
.na * { box-sizing: border-box; }
.na a { color: #DD3D4F; text-decoration: none; }
.na a:hover { color: var(--nv-b4202f); }
.na input::placeholder { color: var(--nv-9a9cb4); opacity: 1; }

@keyframes novaRise { from { opacity: 0; transform: translateY(22px) } to { opacity: 1; transform: translateY(0) } }
@keyframes novaFloat { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-8px) } }
@keyframes novaPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(22,163,106,.45) } 70% { box-shadow: 0 0 0 7px rgba(22,163,106,0) } }

/* The Tailwind forms plugin restyles native checkboxes; give them back to the browser. */
.na input[type="checkbox"],
.na input[type="checkbox"]:checked,
.na input[type="checkbox"]:focus {
  -webkit-appearance: checkbox; appearance: auto; background: revert; border: revert;
  border-radius: revert; padding: 0; color: revert; box-shadow: none; flex: none;
}
.na input[type="checkbox"]:focus-visible { outline: 2px solid #DD3D4F; outline-offset: 2px; }

/* -- focus / hover ------------------------------------------------------------ */
.na .na-f:focus { border-color: #DD3D4F !important; box-shadow: 0 0 0 4px rgba(221,61,79,.16) !important; outline: none; }
.na .na-invalid { border-color: #DD3D4F !important; }
.na .na-h-toggle:hover { background: var(--nv-f0f0f7) !important; color: var(--nv-0e0f1f-text) !important; }
.na .na-h-cta:hover { background: #B4202F !important; transform: translateY(-2px) !important; box-shadow: 0 20px 34px -12px rgba(221,61,79,.75) !important; color: #fff !important; }
.na .na-h-social:hover { border-color: var(--nv-f3c4ca) !important; background: var(--nv-fff5f6) !important; }

/* -- notices and field errors ------------------------------------------------- */
.na-note { margin: 0 0 18px; padding: 12px 14px; border-radius: 11px; border: 1px solid var(--nv-e6e6ef); background: var(--nv-fff-bg);
  font-size: 14px; line-height: 1.5; font-weight: 600; color: var(--nv-1c1d2e-text); }
.na-note-error { background: var(--nv-fff5f6); border-color: var(--nv-f3c4ca); color: var(--nv-b4202f); }
.na-note-warning { background: var(--nv-fff8e6); border-color: var(--nv-f2dfa6); color: var(--nv-7a5b0c); }
.na-note-success { background: var(--nv-e8f7f0); border-color: var(--nv-bfe8d3); color: var(--nv-0f7a4f); }
.na-err { font-size: 12.5px; line-height: 1.4; font-weight: 600; color: #DD3D4F; }

.na-trust { flex-wrap: wrap; row-gap: 4px; }

/* Motion runs exactly as in the design, even when the OS asks for reduced motion. */

/* -- touch targets -------------------------------------------------------------
   Phones get finger-sized hit areas on small links and toggles; wider screens
   keep the design's exact sizes. */
@media (max-width: 767px) {
  .na .nv-tap { display: inline-flex; align-items: center; min-height: 44px; }
  .na label > span:has(> .nv-tap) { align-items: center; }
  #nova-auth > div > a:first-child { min-height: 44px; }                        /* the logo */
  .na [data-auth-tab] { display: flex !important; align-items: center; justify-content: center; min-height: 44px; }
  /* Show / Hide inside the 48px password field: 44px tall, 2px from the field's edges. */
  .na .na-h-toggle { top: 2px !important; height: 44px !important; min-width: 44px; }
  /* Checkboxes stay the design's 18px squares; their whole label row is the 44px target. */
  .na label:has(> input[type="checkbox"]) { min-height: 44px; }
}

/* -- two-factor code page (templates/auth/two_factor.html) ------------------------------------------ */
.na .na-otp::placeholder { letter-spacing: .12em; }
.na .na-h-link:hover { color: var(--nv-b4202f) !important; }
