:root {
  color-scheme: light;
  --teal-950: #082f2a;
  --teal-800: #0e4b42;
  --gold: #b28b52;
  --paper: #f7f4ed;
  --ink: #173b35;
  --muted: #71847f;
  --line: #dce5e1;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 16%, rgba(178, 139, 82, .14), transparent 28rem),
    linear-gradient(145deg, var(--paper), #edf3ef);
  font-family: Tahoma, Arial, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .34;
  background-image: linear-gradient(rgba(14, 75, 66, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(14, 75, 66, .025) 1px, transparent 1px);
  background-size: 32px 32px;
}

.login-shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.login-card {
  width: min(430px, 100%);
  padding: 42px;
  border: 1px solid rgba(14, 75, 66, .13);
  border-radius: 24px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 30px 80px rgba(8, 47, 42, .15);
  backdrop-filter: blur(18px);
}

.login-language-switch {
  display: flex;
  justify-content: flex-end;
  gap: 2px;
  margin-bottom: 20px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(247, 250, 248, .85);
}
.login-language-switch button {
  min-height: 30px;
  padding: 5px 9px;
  color: var(--muted);
  border: 0;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
  font: 700 10px Tahoma, Arial, sans-serif;
}
.login-language-switch button:hover { color: var(--ink); background: rgba(14, 75, 66, .06); }
.login-language-switch button[aria-pressed="true"] { color: #fff; background: var(--teal-800); }
.login-language-switch button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.brand-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-block-end: 26px;
  margin-inline-end: auto;
  border-radius: 17px;
  color: #fff;
  background: var(--teal-800);
  box-shadow: 0 10px 24px rgba(14, 75, 66, .22);
}

.brand-mark svg { width: 35px; height: 35px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.eyebrow { margin: 0 0 8px; color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 34px; font-weight: 500; }
.intro { margin: 12px 0 28px; color: var(--muted); font-size: 12px; line-height: 1.8; }
form { display: grid; }
label { margin: 0 0 8px; color: #526b65; font-size: 11px; font-weight: 700; }
input {
  width: 100%;
  height: 48px;
  margin-bottom: 18px;
  padding: 0 14px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  background: #fbfcfb;
  font: inherit;
}
input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(178, 139, 82, .1); }
.submit-button {
  height: 49px;
  margin-top: 3px;
  color: #fff;
  border: 0;
  border-radius: 11px;
  background: var(--teal-800);
  cursor: pointer;
  font: 700 12px inherit;
  box-shadow: 0 10px 20px rgba(14, 75, 66, .17);
}
.submit-button:hover { background: var(--teal-950); }
.submit-button:focus-visible { outline: 3px solid rgba(178, 139, 82, .35); outline-offset: 3px; }
.submit-button:disabled { cursor: wait; opacity: .65; }
.error { min-height: 20px; margin: 13px 0 0; color: #a33f32; font-size: 11px; line-height: 1.6; text-align: center; }
.security-note { display: flex; justify-content: center; align-items: center; gap: 7px; margin: 22px 0 0; padding-top: 19px; border-top: 1px solid #edf1ef; color: var(--muted); font-size: 9px; }
.security-note span { color: #54a786; font-size: 8px; }

@media (max-width: 520px) {
  .login-shell { padding: 15px; }
  .login-card { padding: 30px 23px; border-radius: 19px; }
  h1 { font-size: 29px; }
}
