:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: #f7f8fb;
  background:
    radial-gradient(circle at 31% 22%, rgba(32, 54, 91, .24), transparent 30%),
    linear-gradient(135deg, #0b0f17 0%, #090c12 100%);
}

button, input { font: inherit; }

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

.login-card {
  width: min(650px, 100%);
  min-height: 510px;
  padding: 34px 46px 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #293143;
  border-radius: 20px;
  background: rgba(15, 18, 27, .92);
  box-shadow: 0 24px 40px rgba(0, 0, 0, .32);
}

.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.login-mark {
  position: relative;
  width: 84px;
  height: 102px;
  overflow: hidden;
  margin-bottom: -1px;
}

.login-mark img {
  position: absolute;
  top: 0;
  left: 50%;
  width: 346px;
  height: 133px;
  max-width: none;
  transform: translateX(-50%);
}

.login-brand h1 {
  margin: 0;
  font-size: clamp(1.55rem, 2.5vw, 1.9rem);
  line-height: 1.12;
  letter-spacing: -.025em;
  text-align: center;
}

sup { font-size: .55em; vertical-align: super; }

.login-brand p {
  margin: 3px 0 24px;
  color: #aebfdd;
  font-size: 1.1rem;
  line-height: 1.2;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.login-form {
  width: min(290px, 100%);
  display: grid;
  gap: 18px;
}

.login-form input {
  width: 100%;
  height: 37px;
  padding: 0 13px;
  color: #f7f8fb;
  border: 1px solid #2a3141;
  border-radius: 11px;
  outline: none;
  background: #151925;
  font-size: .88rem;
}

.login-form input::placeholder { color: #8b8f98; }
.login-form input:focus { border-color: #6f89b8; box-shadow: 0 0 0 3px rgba(92, 126, 190, .18); }

.continue-button {
  height: 42px;
  color: #a5a8af;
  border: 0;
  border-radius: 11px;
  background: #172237;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.continue-button:hover,
.continue-button:focus-visible { color: #fff; background: #213250; transform: translateY(-1px); }

.login-divider {
  width: min(372px, 100%);
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 32px 0 10px;
  color: #fff;
  font-size: .88rem;
  font-weight: 800;
  text-transform: uppercase;
}

.login-divider::before,
.login-divider::after { content: ""; height: 1px; flex: 1; background: #2a3141; }
.login-divider span { white-space: nowrap; }

.provider-grid {
  width: min(372px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.provider-button {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: #fff;
  border: 1px solid #293143;
  border-radius: 14px;
  background: transparent;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.provider-button:hover,
.provider-button:focus-visible { background: #151b29; border-color: #42506a; transform: translateY(-1px); }
.provider-button svg { width: 19px; height: 19px; flex: 0 0 auto; }

.login-copyright {
  margin: 20px 0 0;
  color: #aebfdd;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .8rem;
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 600px) {
  .login-shell { padding: 18px 14px; }
  .login-card { min-height: 0; padding: 35px 22px 27px; }
  .login-mark { transform: scale(.86); margin-top: -8px; margin-bottom: 0; }
  .login-brand p { font-size: clamp(.82rem, 4vw, 1.05rem); }
  .provider-grid { grid-template-columns: 1fr; }
  .login-divider { margin-top: 32px; }
}
