:root {
  color-scheme: light;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f4f6f8;
  color: #17202a;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
}

.login-shell {
  width: min(420px, calc(100vw - 32px));
}

.login-panel {
  background: #ffffff;
  border: 1px solid #d8e0e8;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(20, 35, 55, 0.12);
  padding: 24px;
}

.brand-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}

.brand-row h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.brand-row p {
  margin: 4px 0 0;
  color: #5f6f80;
  font-size: 13px;
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #314152;
}

.login-form input {
  min-height: 42px;
  border: 1px solid #bfccd8;
  border-radius: 6px;
  padding: 9px 11px;
  font: inherit;
}

.login-form input:focus {
  border-color: #2563eb;
  outline: 3px solid rgba(37, 99, 235, 0.14);
}

.login-form button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: #2563eb;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.login-form button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.login-status {
  min-height: 20px;
  margin: 0;
  color: #5f6f80;
  font-size: 13px;
}

.login-status.error {
  color: #b42318;
}

.hidden {
  display: none !important;
}

.auth-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 18px;
  background: #eef2f6;
  border-radius: 6px;
  padding: 4px;
}

.auth-mode-tab {
  min-height: 36px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #5f6f80;
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.auth-mode-tab.active {
  background: #ffffff;
  color: #17202a;
  box-shadow: 0 1px 3px rgba(20, 35, 55, 0.16);
}
