:root {
  color-scheme: light dark;
  --accent: #0f766e;
  --canvas: light-dark(#eaf0f3, #141c20);
  --surface: light-dark(#fff, #202a2f);
  --ink: light-dark(#14292c, #eff7f6);
  --muted: light-dark(#496267, #b6c7ca);
  --line: light-dark(#cbd9dc, #46585d);
  --field: light-dark(#f7faf9, #192226);
  --action: light-dark(color-mix(in srgb, var(--accent) 36%, #123a36), color-mix(in srgb, var(--accent) 27%, #e4fff4));
  --action-text: light-dark(#fff, #112520);
  font: 16px/1.45 "Segoe UI", system-ui, sans-serif;
  background: var(--canvas);
  color: var(--ink);
}

:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
*, *::before, *::after { box-sizing: border-box; }
body { min-height: 100svh; display: grid; grid-template-rows: auto 1fr; margin: 0; padding: clamp(14px, 3.2vw, 46px); }
select, input, button { font: inherit; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }

.preferences { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px 14px; }
.preference { display: grid; align-content: start; gap: 3px; color: var(--muted); font-size: .75rem; }
.preference :is(select, input) { height: 36px; min-width: 0; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); cursor: pointer; }
.preference input { width: 52px; }

.portal {
  align-self: center;
  justify-self: center;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(100%, 1040px);
  min-height: 478px;
  overflow: hidden;
  margin-block: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 25px 80px #102b301a;
}

.identity {
  display: grid;
  align-content: space-between;
  gap: 36px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(24px, 4.5vw, 64px);
  background: radial-gradient(ellipse at top right, color-mix(in srgb, var(--accent) 30%, #124640), #0d302e 76%);
  color: white;
}

.identity::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto -100px -170px auto;
  width: 380px;
  aspect-ratio: 1;
  border: 1px solid #ffffff32;
  border-radius: 50%;
  box-shadow: 0 0 0 32px #ffffff13, 0 0 0 64px #ffffff0b;
}

.brand { display: flex; align-items: center; flex-wrap: wrap; column-gap: .34em; font-weight: 680; font-size: 1.125rem; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; margin-inline-end: 6px; border: 1px solid #ffffff58; border-radius: 10px; color: #d3f8e6; font-size: 1.5rem; }
.identity h1 { max-width: 12ch; margin: 0; font-size: clamp(2rem, 4.2vw, 3.7rem); line-height: 1.04; letter-spacing: -.045em; text-wrap: balance; }
.address { color: #d4e8e1; font-size: .8125rem; overflow-wrap: anywhere; }

.access { align-self: center; min-width: 0; padding: clamp(24px, 4.5vw, 64px); }
.credentials { display: grid; gap: 16px; min-width: 0; margin: 0; border: 0; padding: 0; }
.field { display: grid; gap: 5px; color: var(--muted); font-size: .875rem; }
.credentials :is(input, button) { width: 100%; min-width: 0; min-height: 46px; border: 1px solid var(--line); border-radius: 9px; padding: 8px 11px; }
.credentials input { background: var(--field); color: var(--ink); }
.credentials button { border-color: transparent; background: var(--action); color: var(--action-text); font-weight: 650; }
.credentials button:disabled { opacity: .65; }

@media (max-width: 690px) {
  .portal { grid-template-columns: minmax(0, 1fr); }
  .identity { gap: 16px; }
  .identity h1 { max-width: 18ch; }
}
