/* NookHaven v1.6.27: visual palette refresh ONLY.
   The Login and Sign Up markup, logo SVGs, grid/flex structures, dimensions,
   control IDs, form validation, breakpoints and auth JavaScript are preserved
   exactly from the user-supplied v1.6.24 codebase. */
:root {
  --ink: #234765;
  --muted: #587b92;
  --line: #a5cadd;
  --tint: #cde5ef;
  --tint-strong: #e4f3f9;
}

/* Keep the original notebook artwork; tint its existing lines and shapes
   with the blue/teal palette used in the wellness screens. */
body.login-page,
body.register-page {
  background-color: #dcebf3;
  background-image:
    linear-gradient(137deg, rgba(232,246,252,.44), rgba(207,233,239,.43)),
    url('../../assets/images/login-background.svg');
}
body.register-page {
  background-image:
    linear-gradient(137deg, rgba(232,246,252,.44), rgba(207,233,239,.43)),
    url('../../assets/images/register-background.svg');
}

/* Existing Login card: same width, centered position, logo and paperclip. */
body.login-page .login-card {
  background: rgba(250,254,255,.94);
  border-color: #c0dce9;
  box-shadow: 0 18px 39px rgba(39,91,122,.11);
}
body.login-page .login-card h1 { color:#234763; }
body.login-page .login-subtitle { color:#587c94; }
body.login-page .input-group { border-bottom-color:#aacbdc; }
body.login-page .input-group:focus-within { border-bottom-color:#347e9e; }
body.login-page .input-group .field-icon,
body.login-page .toggle-password { color:#6794ad; }
body.login-page .input-group:focus-within .field-icon,
body.login-page .toggle-password:hover { color:#347e9e; }
body.login-page .input-group input { color:#234763; }
body.login-page .input-group input::placeholder { color:#7393a9; }
body.login-page .login-btn {
  border-color:#347396;
  background:linear-gradient(110deg,#326e91 0%,#4d99a9 100%);
  box-shadow:0 7px 18px rgba(36,103,135,.12);
}
body.login-page .login-btn:hover:not(:disabled) {
  background:linear-gradient(110deg,#275d80 0%,#408b9d 100%);
  box-shadow:0 9px 21px rgba(36,103,135,.18);
}
body.login-page .text-action,
body.login-page .signup-link { color:#276b8d; }
body.login-page .text-action:hover,
body.login-page .signup-link:hover { color:#1e5676; }
body.login-page .signup-prompt { color:#4e7189; }
body.login-page .password-help { color:#60829a; }
body.login-page .login-status.success { color:#26738c; }

/* Existing Sign Up layout: the original 3 desktop panels, wide house-and-leaves
   logo, paperclip and responsive stacking are intentionally NOT re-laid out. */
body.register-page .register-card {
  background:rgba(250,254,255,.95);
  border-color:#b8d8e6;
  box-shadow:0 18px 43px rgba(39,91,122,.11);
}
body.register-page .register-welcome {
  background:linear-gradient(150deg,#d8ebf5 0%,#c1dfeb 53%,#b2dcd9 100%);
  border-color:#bad7e5;
}
body.register-page .register-account { border-color:#c2dde8; }
body.register-page .welcome-copy h1,
body.register-page .register-content h2,
body.register-page .register-field label,
body.register-page .consent-heading,
body.register-page .agreements-heading-row h3 { color:#234763; }
body.register-page .welcome-copy p,
body.register-page .register-section-hint,
body.register-page .preview-info,
body.register-page .consent-description,
body.register-page .register-footer,
body.register-page .password-requirements { color:#597c93; }
body.register-page .register-input,
body.register-page .agreements-heading-row,
body.register-page .agreement-row { border-color:#aed0e0; }
body.register-page .register-input:focus-within,
body.register-page .age-picker.is-open .select-input { border-color:#347e9e; }
body.register-page .register-input .field-icon,
body.register-page .toggle-password { color:#7098ad; }
body.register-page .register-input:focus-within .field-icon,
body.register-page .toggle-password:hover { color:#347e9e; }
body.register-page .register-input input,
body.register-page .age-picker-trigger,
body.register-page .age-picker.has-value .age-picker-value { color:#244e69; }
body.register-page .register-input input::placeholder,
body.register-page .age-picker-value { color:#7393a9; }
body.register-page .age-picker-trigger .select-arrow { color:#497d99; }
body.register-page .age-picker-menu {
  background:#f5fbfe;
  border-color:#b8d5e5;
  box-shadow:0 14px 27px rgba(39,91,122,.14);
}
body.register-page .age-picker-option { color:#315d77; }
body.register-page .age-picker-option:hover,
body.register-page .age-picker-option:focus-visible { background:#e2f1f7; color:#235979; }
body.register-page .age-picker-option[aria-selected="true"] { background:#d1eaf2; color:#235979; }
body.register-page .consent-panel { background:#edf7fb; border-color:#b5d7e6; }
body.register-page .consent-panel:has(input:checked) { background:#dff2f4; border-color:#7aafbe; }
body.register-page .consent-checkbox,
body.register-page .agreement-row input[type="checkbox"] { border-color:#3e7290; }
body.register-page .consent-row input:checked + .consent-checkbox,
body.register-page .agreement-row input[type="checkbox"]:checked {
  background:#326e91;
  border-color:#326e91;
}
body.register-page .consent-details { background:#deeff5; color:#326f8b; }
body.register-page .consent-details:hover { background:#cce5ee; color:#235b7b; }
body.register-page .preview-label { background:#d8edf4; color:#326f8b; }
body.register-page .password-rules li[data-met="true"] { color:#245b78; }
body.register-page .password-rules li[data-met="true"]::before { background:#357f99; border-color:#357f99; }
body.register-page .agreement-document,
body.register-page .register-footer a { color:#296d8c; }
body.register-page .agreement-document:hover { color:#1c5777; background:#e6f2f7; }
body.register-page .back-to-login {
  background:#f4fbff;
  border-color:#b9d8e7;
  color:#275b78;
}
body.register-page .back-to-login:hover { background:#e3f3fa; border-color:#9cc7da; }
body.register-page .register-submit,
body.register-page .dialog-confirm {
  border-color:#347396;
  background:linear-gradient(110deg,#326e91 0%,#4d99a9 100%);
}
body.register-page .register-submit:hover:not(:disabled),
body.register-page .dialog-confirm:hover {
  background:linear-gradient(110deg,#275d80 0%,#408b9d 100%);
}
body.register-page .agreement-dialog,
body.register-page .consent-dialog {
  background:#f7fcff;
  border-color:#bdd9e6;
  color:#234763;
}
body.register-page .dialog-inner h2,
body.register-page .agreement-dialog-header h2 { color:#234763; }
body.register-page .dialog-inner .dialog-notice {
  background:#e0f0f6;
  border-left-color:#4492a4;
  color:#52758d;
}
body.register-page .agreement-dialog-header,
body.register-page .agreement-dialog-footer { border-color:#c6e0e9; }
body.login-page :is(button,a,input):focus-visible,
body.register-page :is(button,a,input):focus-visible {
  outline-color:#4c9bad;
}


/* Login feedback uses the same calm inline error treatment as registration. */
body.login-page .login-status:not(.success) {
  display:block;
  padding:13px 15px;
  margin:17px 0 0;
  border:1px solid #edc9d0;
  border-radius:11px;
  background:#fff0f2;
  color:#a34d5e;
  text-align:left;
  font-size:13px;
  line-height:1.5;
  overflow-wrap:anywhere;
}
body.login-page .login-status[hidden]{display:none!important;}
body.login-page .login-status:not([hidden]) + .login-btn{margin-top:18px;}
@media(max-width:650px){body.login-page .login-status:not(.success){margin:13px 0 0;}}
/* Saved username or password filled in by the browser: keep the field's own look. Otherwise the
   browser paints a light-blue box behind the saved text that doesn't reach the end of the field.
   The inset shadow is the card's own colour (#f8fcfe), so the field looks the same as when typed. */
body.login-page .input-group input:is(:-webkit-autofill, :autofill),
body.login-page .input-group input:is(:-webkit-autofill, :autofill):is(:hover, :focus),
body.register-page .register-input input:is(:-webkit-autofill, :autofill),
body.register-page .register-input input:is(:-webkit-autofill, :autofill):is(:hover, :focus) {
  -webkit-box-shadow:0 0 0 1000px #f8fcfe inset !important;
  box-shadow:0 0 0 1000px #f8fcfe inset !important;
  transition:background-color 600000s 0s, color 600000s 0s;
}
body.login-page .input-group input:is(:-webkit-autofill, :autofill) {-webkit-text-fill-color:#234763 !important;caret-color:#234763;}
body.register-page .register-input input:is(:-webkit-autofill, :autofill) {-webkit-text-fill-color:#244e69 !important;caret-color:#244e69;}
