:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #162431;
  background: #edf2f4;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: #edf2f4 url("/images/login_background.png") center / cover no-repeat fixed;
}

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

.auth-panel {
  width: min(100%, 420px);
  padding: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 54px rgba(16, 37, 51, 0.18);
}

.environment {
  display: inline-block;
  margin-bottom: 24px;
  padding: 5px 9px;
  border: 1px solid #b9c7ce;
  border-radius: 4px;
  color: #4d626e;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.logo { width: min(230px, 72%); height: auto; display: block; }
.copy { margin: 28px 0 24px; }
h1 { margin: 0 0 8px; font-size: 25px; line-height: 1.2; letter-spacing: 0; }
p { margin: 0; color: #60727d; line-height: 1.55; }
form { display: grid; gap: 9px; }
label { margin-top: 7px; font-size: 13px; font-weight: 700; }

input {
  width: 100%;
  height: 46px;
  border: 1px solid #b9c7ce;
  border-radius: 5px;
  padding: 0 13px;
  color: #162431;
  background: #fff;
  font: inherit;
}

input:focus { outline: 3px solid rgba(0, 142, 169, 0.18); border-color: #008ea9; }
button {
  height: 46px;
  margin-top: 14px;
  border: 0;
  border-radius: 5px;
  color: #fff;
  background: #d71920;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
button:hover { background: #b91319; }
button:disabled { cursor: wait; opacity: 0.65; }
.status { min-height: 22px; margin-top: 16px; color: #b91319; font-size: 14px; line-height: 1.45; }
.status.success { color: #167044; }
.support { margin-top: 20px; font-size: 12px; }

@media (max-width: 520px) {
  .shell { align-items: end; padding: 0; }
  .auth-panel { width: 100%; padding: 28px 22px max(28px, env(safe-area-inset-bottom)); border-radius: 8px 8px 0 0; }
}
