:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #e9edef;
  color: #17202a;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  background: #e9edef;
}

.login-shell {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 24px;
  background: #e9edef;
}

.login-shell::before,
.login-shell::after {
  content: "";
  position: fixed;
  pointer-events: none;
}

.login-shell::before {
  inset: -24px;
  z-index: -2;
  background: url("/auth/login-background.jpg") center center / cover no-repeat;
  filter: blur(7px) brightness(1.1) saturate(.82);
  transform: scale(1.035);
}

.login-shell::after {
  inset: 0;
  z-index: -1;
  background: rgba(244, 246, 248, .48);
}

.login-card {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  padding: 30px 32px 28px;
  border: 1px solid rgba(23, 32, 42, .08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 54px rgba(23, 32, 42, .24);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: #647386;
  font-size: 13px;
  font-weight: 700;
}

.login-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #17202a;
}

.login-logo img {
  width: 32px;
  height: 32px;
  display: block;
  object-fit: contain;
}

h1 {
  margin: 0 0 6px;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0;
}

.login-intro {
  margin: 0 0 18px;
  color: #5b6c80;
  font-size: 16px;
  line-height: 1.5;
}

.login-trust {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  padding: 9px 11px;
  border: 1px solid #d6e0e6;
  border-radius: 8px;
  background: #f7fafb;
  color: #405466;
  font-size: 13px;
  line-height: 1.35;
}

.login-trust svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: #137366;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-status {
  margin: 0 0 12px;
  padding: 9px 11px;
  border-radius: 8px;
  background: #eef4f8;
  color: #405466;
  font-size: 13px;
  line-height: 1.4;
}

.auth-status[data-kind="error"] {
  border: 1px solid #efd1ce;
  background: #fff1ef;
  color: #9b302a;
}

[hidden] {
  display: none !important;
}

button {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #f87102;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background .16s ease, box-shadow .16s ease;
}

button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

button:hover {
  background: #dc6100;
}

button:disabled {
  cursor: wait;
  opacity: .72;
}

button:focus-visible {
  outline: 3px solid rgba(248, 113, 2, .3);
  outline-offset: 3px;
}

.login-endpoint {
  margin: 14px 0 0;
  color: #66788e;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-align: center;
}

@media (max-width: 520px) {
  .login-shell {
    padding: 16px;
  }

  .login-card {
    padding: 24px 22px 22px;
  }

  h1 {
    font-size: 26px;
  }

  .login-intro {
    font-size: 15px;
  }
}
