:root {
  color-scheme: light;
  --bsteam-identity-bg: #eef5ff;
  --bsteam-identity-card: #ffffff;
  --bsteam-identity-text: #0f172a;
  --bsteam-identity-muted: #52637a;
  --bsteam-identity-border: #d8e3f1;
  --bsteam-identity-primary: #2563eb;
  --bsteam-identity-primary-hover: #1d4ed8;
  --bsteam-identity-header: #0c2f5c;
  --bsteam-identity-danger: #b42318;
  --bsteam-identity-danger-bg: #fff1f0;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body.bsteam-identity-page {
  margin: 0;
  background:
    radial-gradient(circle at 14% 12%, rgba(45, 212, 191, 0.17), transparent 32rem),
    radial-gradient(circle at 88% 82%, rgba(37, 99, 235, 0.18), transparent 34rem),
    var(--bsteam-identity-bg);
  color: var(--bsteam-identity-text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

.bsteam-identity-shell {
  display: grid;
  min-height: 100vh;
  place-content: center;
  padding: 32px 18px;
}

.bsteam-identity-card {
  width: min(100%, 560px);
  overflow: hidden;
  border: 1px solid var(--bsteam-identity-border);
  border-radius: 24px;
  background: var(--bsteam-identity-card);
  box-shadow: 0 24px 70px rgba(15, 47, 95, 0.16);
}

.bsteam-identity-brand {
  display: flex;
  min-height: 100px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 28px;
  background: linear-gradient(135deg, var(--bsteam-identity-header), #124d83);
}

.bsteam-identity-brand a {
  display: inline-flex;
  align-items: center;
}

.bsteam-identity-brand img {
  display: block;
  width: auto;
  max-width: 190px;
  height: auto;
  max-height: 64px;
  object-fit: contain;
}

.bsteam-identity-wordmark {
  color: #ffffff;
  font-size: 1.55rem;
  font-weight: 850;
  letter-spacing: 0.05em;
}

.bsteam-identity-lock {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.1);
}

.bsteam-identity-lock svg {
  width: 24px;
  fill: none;
  stroke: #ffffff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.bsteam-identity-content {
  padding: 34px 34px 38px;
}

.bsteam-identity-eyebrow {
  margin: 0 0 10px;
  color: var(--bsteam-identity-primary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bsteam-identity-content h1 {
  margin: 0;
  font-size: clamp(1.9rem, 5vw, 2.55rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.bsteam-identity-description {
  margin: 14px 0 26px;
  color: var(--bsteam-identity-muted);
  font-size: 1rem;
}

.bsteam-identity-form {
  display: grid;
  gap: 10px;
}

.bsteam-identity-form label {
  margin-top: 8px;
  font-size: 0.9rem;
  font-weight: 700;
}

.bsteam-identity-form input {
  width: 100%;
  min-height: 50px;
  border: 1px solid #bdcbe0;
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  outline: none;
  padding: 12px 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.bsteam-identity-form input:focus {
  border-color: var(--bsteam-identity-primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.bsteam-identity-form button,
.bsteam-identity-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #2574e8, var(--bsteam-identity-primary));
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  padding: 13px 20px;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.bsteam-identity-form button:hover,
.bsteam-identity-button:hover {
  background: var(--bsteam-identity-primary-hover);
  transform: translateY(-1px);
}

.bsteam-identity-back {
  display: inline-flex;
  margin-top: 24px;
  color: var(--bsteam-identity-muted);
  font-weight: 650;
  text-decoration: none;
}

.bsteam-identity-back:hover {
  color: var(--bsteam-identity-primary);
}

.bsteam-identity-hint {
  margin: 0 0 4px;
  color: var(--bsteam-identity-muted);
  font-size: 0.82rem;
}

.bsteam-identity-alert {
  margin: 0 0 20px;
  border: 1px solid #f1b7b2;
  border-radius: 12px;
  background: var(--bsteam-identity-danger-bg);
  color: var(--bsteam-identity-danger);
  padding: 13px 16px;
}

.bsteam-identity-alert ul {
  margin: 0;
  padding-left: 20px;
}

.bsteam-identity-success-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 4px 0 12px;
  place-items: center;
  border-radius: 18px;
  background: #dcfce7;
  color: #15803d;
  font-size: 1.8rem;
  font-weight: 850;
}

.bsteam-identity-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.bsteam-identity-footer {
  margin: 18px 0 0;
  color: #64748b;
  font-size: 0.8rem;
  text-align: center;
}

@media (max-width: 540px) {
  .bsteam-identity-shell {
    place-content: start center;
    padding: 18px 12px;
  }

  .bsteam-identity-card {
    border-radius: 19px;
  }

  .bsteam-identity-brand {
    min-height: 86px;
    padding: 16px 20px;
  }

  .bsteam-identity-lock {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .bsteam-identity-content {
    padding: 28px 22px 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
