* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 5vw, 3rem);
  background: var(--page,#101b24);
  color: var(--text,#f2fbf9);
  font: 1rem/1.5 system-ui, sans-serif;
}
.account-recovery { margin-block: 1rem; }
.account-recovery summary { cursor: pointer; text-decoration: underline; }
.account-recovery p { margin: .65rem 0 0; }
.access {
  width: min(100%, 29rem);
  padding: clamp(1.25rem, 5vw, 2.5rem);
  border: 1px solid var(--line,#527471);
  border-radius: 1.25rem;
  background: var(--surface,#15292e);
}
.brand { display: flex; align-items: center; gap: .8rem; color: var(--accent,#bcffdf); overflow-wrap: anywhere; font-weight: 650; }
.brand img, .brand .brand-icon { width: clamp(6.25rem,12vw,7.5rem); height: clamp(6.25rem,12vw,7.5rem); flex: none; object-fit: contain; }
.brand { flex-direction: column; text-align: center; }
.brand-icon {
  display: grid;
  place-items: center;
  flex: 0 0 3.25rem;
  min-height: 3.25rem;
  border-radius: .65rem;
  background: var(--surface-strong,#28534b);
  font-size: 1.5rem;
}
h1 { margin: 1.2rem 0; font-size: clamp(1.8rem, 5vw, 2.5rem); line-height: 1.1; }
form { display: grid; gap: .55rem; }
label { font-weight: 600; }
input, button { min-height: 2.8rem; border-radius: .5rem; font: inherit; }
input {
  width: 100%;
  min-width: 0;
  padding: .65rem;
  border: 1px solid var(--line,#658682);
  background: var(--page,#0e2026);
  color: var(--text,#f2fbf9);
}
.password-field { display: flex; gap: .45rem; }
button { cursor: pointer; padding: .6rem .85rem; border: 1px solid transparent; font-weight: 650; }
button[type=button] { background: var(--surface-strong,#294943); color: var(--text,#e3fff1); border-color: var(--line,#658682); }
button[type=submit] { margin-top: .65rem; background: var(--accent,#b9f7d7); color: var(--on-accent,#102820); }
:focus-visible { outline: 2px solid var(--accent,#bcffdf); outline-offset: 3px; }
:root[data-theme="light"] .error { background: #fff0f1; color: var(--status-error); border-color: var(--status-error); }
.error { padding: .7rem; border-left: .2rem solid #ff9b94; color: #ffe0de; background: #492d35; }
footer { margin-top: 1.6rem; color: var(--muted,#c6dbdb); font-size: .875rem; }
.remember-device { display: flex; align-items: center; gap: .6rem; margin-top: .35rem; }
.remember-device input { width: 1.15rem; min-height: 1.15rem; padding: 0; accent-color: var(--accent,#b9f7d7); }
.access a { color: var(--accent,#bcffdf); }
