@font-face {
  font-family: "Roboto";
  src: url("/fonts/roboto/roboto-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("/fonts/roboto/roboto-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color: #26323c;
  background: #f3f6f8;
  font-family: "Roboto", "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #f3f6f8;
}

button,
input { font: inherit; }

.page-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(460px, 100%);
  padding: 32px;
  border: 1px solid #d8e1e7;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(31, 54, 69, 0.1);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: #1685af;
  font-size: 22px;
  font-weight: 800;
}

.kicker,
.environment { margin: 0; line-height: 1.1; }

.kicker { font-size: 14px; font-weight: 800; }

.environment {
  margin-top: 4px;
  color: #1685af;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 7vw, 40px);
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.description {
  margin: 12px 0 0;
  color: #687580;
  font-size: 15px;
  line-height: 1.45;
}

form { display: grid; gap: 13px; margin-top: 25px; }

.field {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
}

.field input {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid #cbd8e0;
  border-radius: 8px;
  outline: none;
  color: #26323c;
  background: #fff;
  font-size: 17px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.field input:focus {
  border-color: #1685af;
  box-shadow: 0 0 0 3px rgba(22, 133, 175, 0.13);
}

.primary,
.secondary {
  min-height: 48px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.primary { border: 0; color: #fff; background: #1685af; }
.primary:hover { background: #0d6688; }
.secondary { border: 1px solid #cbd8e0; color: #0d6688; background: #f7fbfd; }

button:disabled,
input:disabled { cursor: wait; opacity: 0.6; }

.notice,
.error {
  margin: 0;
  padding: 11px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
}

.notice { color: #176a3e; background: #e8f8ef; }
.error { color: #a43636; background: #fff0f0; }

.language-switcher {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #d8e1e7;
}

.language-button {
  min-width: 0;
  min-height: 44px;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border: 1px solid #d8e1e7;
  border-radius: 999px;
  color: #26323c;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
}

.language-button span { font-size: 18px; }
.language-button strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.language-button:hover,
.language-button.active { border-color: #87bdd1; background: #eaf5f9; color: #0d6688; }

.security-note {
  margin: 22px 0 0;
  color: #7d8992;
  font-size: 12px;
  line-height: 1.45;
}

.hidden { display: none !important; }

@media (max-width: 620px) {
  .page-shell { align-items: stretch; padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)); }
  .auth-card { display: flex; min-height: calc(100vh - 24px); flex-direction: column; justify-content: center; padding: 26px 20px; }
  .field input { min-height: 56px; font-size: 19px; }
  .language-button { padding-inline: 8px; font-size: 12px; }
}
