:root {
  color-scheme: light dark;
  --nx-ink: #062a31;
  --nx-accent: #68a2b9;
  --nx-primary: #3b71ca;
  --nx-primary-hover: #2f5da9;
  --nx-canvas: #f3f7f8;
  --nx-surface: #fff;
  --nx-text: #173b42;
  --nx-muted: #5a7278;
  --nx-border: #cbdade;
  --nx-field: #fff;
  --nx-error: #b42335;
  --nx-shadow: 0 20px 64px rgb(6 42 49 / 7%);
  font-family: "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 240px;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  background: var(--nx-canvas);
  color: var(--nx-text);
  border-top: 5px solid var(--nx-accent);
}
.login { width: min(100%, 440px); }
.brand { margin-bottom: 30px; text-align: center; }
.brand img { display: block; width: 226px; max-width: 80%; height: auto; margin: 0 auto; }
.login-panel {
  background: var(--nx-surface);
  padding: 36px;
  border: 1px solid var(--nx-border);
  border-radius: 16px;
  box-shadow: var(--nx-shadow);
}
h1 { font-size: 26px; line-height: 1.25; letter-spacing: -.6px; margin: 0 0 10px; font-weight: 650; }
.intro { color: var(--nx-muted); font-size: 15px; line-height: 1.6; margin: 0 0 30px; }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 9px; }
.address-field {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--nx-border);
  background: var(--nx-field);
  border-radius: 8px;
  padding: 0 13px;
  transition: border-color .15s, box-shadow .15s;
}
.address-field:focus-within { border-color: var(--nx-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--nx-primary) 18%, transparent); }
.address-field.invalid { border-color: var(--nx-error); }
.prefix, .suffix { font-size: 14px; color: var(--nx-muted); white-space: nowrap; }
.prefix { padding-right: 2px; }
input {
  min-width: 0;
  width: 100%;
  height: 52px;
  padding: 0 3px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--nx-text);
  font: inherit;
  font-size: 16px;
}
input::placeholder { color: var(--nx-muted); opacity: .75; }
.help, .error { font-size: 12px; line-height: 1.5; margin: 9px 0 0; }
.help { color: var(--nx-muted); }
.error { color: var(--nx-error); }
[hidden] { display: none !important; }
.sso-button {
  width: 100%;
  min-height: 56px;
  margin-top: 27px;
  padding: 16px 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--nx-primary);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.sso-button:hover { background: var(--nx-primary-hover); }
.sso-button:focus-visible { outline: 3px solid var(--nx-accent); outline-offset: 4px; }
.sso-button:disabled { cursor: wait; opacity: .75; }
.microsoft-icon { width: 19px; height: 19px; flex: 0 0 auto; }
.arrow { width: 20px; height: 20px; margin-left: auto; }
#button-text { margin-right: auto; }
.destination { min-height: 20px; margin: 15px 0 0; color: var(--nx-muted); font-size: 12px; line-height: 1.6; text-align: center; overflow-wrap: anywhere; }
footer { margin-top: 26px; color: var(--nx-muted); text-align: center; font-size: 12px; letter-spacing: .3px; }
@media (max-width: 400px) {
  body { padding: 28px 16px; }
  .brand { margin-bottom: 23px; }
  .login-panel { padding: 26px 20px; }
  h1 { font-size: 23px; }
  .prefix, .suffix { font-size: 12px; }
  .address-field { padding: 0 10px; }
}
@media (prefers-color-scheme: dark) {
  :root {
    --nx-canvas: #062a31;
    --nx-surface: #10373f;
    --nx-text: #eff6f8;
    --nx-muted: #b4cbd2;
    --nx-border: #38606b;
    --nx-field: #0b2f37;
    --nx-error: #ff9eaa;
    --nx-shadow: 0 20px 64px rgb(0 0 0 / 12%);
  }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
