/* Sign-in and no-access pages, in the look of the ofiss.timbro.lv sign-in (timbro-ofiss-hub apps/portal/src/app/login):
   bark photo with a dark overlay, white Timbro lockup, a white card, the Pine Green button. Colours are the
   @ofiss/ui tokens. */
@font-face {
  font-family: "PP Mori";
  src: url("PPMori-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --forest-900: #0B2809;
  --pine-green: #82CA3E;
  --pine-600: #6BAF2E;
  --pine-700: #548A25;
  --paper-2: #F3F1E9;
  --border: #DDD8C9;
  --border-strong: #C2BCAA;
  --stone-400: #948E7C;
  --stone-500: #6C6757;
  --success-100: #E4F1D8;
  --success-500: #4E9E2E;
  --success-700: #356B1F;
  --danger-100: #F6E0D8;
  --danger-500: #C24A30;
  --ring: 0 0 0 3px rgba(130, 202, 62, 0.45);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--forest-900);
  font: 400 14px/1.45 "PP Mori", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: linear-gradient(rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.34)), url("login-bg.webp") center / cover no-repeat, var(--forest-900);
}

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: clamp(20px, 4vw, 44px);
}

.top { display: flex; align-items: center; justify-content: space-between; }
.logo { display: block; height: 44px; width: auto; }

.lang {
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--forest-900);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  transition: border-color 120ms var(--ease), background 120ms var(--ease);
}
.lang:hover { border-color: var(--border-strong); background: var(--paper-2); }
.lang:focus-visible { outline: none; box-shadow: var(--ring); }

main { margin: auto 0; display: flex; justify-content: center; padding: 24px 0; }

.card {
  width: 100%;
  max-width: 432px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(26px, 6vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.sub { margin: 10px 0 0; font-size: 15px; line-height: 1.5; color: var(--stone-500); }
h1 { margin: 0; font-size: clamp(34px, 5vw, 42px); line-height: 0.98; letter-spacing: -0.01em; font-weight: 400; }
h2 { margin: 0; font-size: 22px; line-height: 1.1; font-weight: 400; }
.stack { display: flex; flex-direction: column; gap: 14px; margin: 0; }
#denied { gap: 16px; }

.btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 26px;
  font: inherit;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0.005em;
  color: var(--forest-900);
  background: var(--pine-green);
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: background 120ms var(--ease), transform 120ms var(--ease), box-shadow 120ms var(--ease);
}
.btn:hover:not([disabled]) { background: var(--pine-600); }
.btn:active:not([disabled]) { background: var(--pine-700); transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

a { color: var(--success-700); text-decoration: none; }
a:hover { text-decoration: underline; }
.hint { margin: 0; text-align: center; font-size: 13px; color: var(--stone-400); }
.muted { margin: 0; font-size: 14px; line-height: 1.5; color: var(--stone-500); }
.center-link { text-align: center; font-size: 13.5px; }

.note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 11px 14px;
  font-size: 13.5px;
  background: var(--success-100);
  border-radius: 10px;
}
.note svg { flex: none; color: var(--success-500); }

.alert-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--danger-100);
  color: var(--danger-500);
  display: flex;
  align-items: center;
  justify-content: center;
}

.foot { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: rgba(255, 255, 255, 0.78); }
.foot a { color: #fff; }
