html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

body.auth-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(13, 110, 253, .10), transparent 34rem),
    linear-gradient(135deg, #ffffff 0%, #f5f7fb 100%);
  color: #0b1220;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.login-shell {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .75fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
}

.login-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #0b1220;
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 52px;
}

.login-brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: #0b1220;
  color: #fff;
  font-weight: 850;
  box-shadow: 0 18px 35px rgba(11, 18, 32, .16);
}

.login-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.75rem);
  line-height: .98;
  letter-spacing: 0;
  font-weight: 850;
  margin: 0 0 24px;
}

.login-hero p {
  color: #5f6b7a;
  font-size: 1.12rem;
  line-height: 1.7;
  max-width: 640px;
  margin: 0;
}

.login-eyebrow {
  color: #0d6efd;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.login-benefits {
  display: grid;
  gap: 14px;
  margin-top: 36px;
  color: #172033;
  font-weight: 700;
}

.login-benefits div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-benefits span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #0d6efd;
  box-shadow: 0 0 0 7px rgba(13, 110, 253, .10);
}

.login-card,
.signed-in-card {
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(15, 23, 42, .07);
  border-radius: 30px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, .12);
  padding: clamp(28px, 4vw, 42px);
  backdrop-filter: blur(18px);
}

.login-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}

.login-card-header h2 {
  font-size: 1.45rem;
  font-weight: 850;
  margin: 0;
}

.login-form .form-label {
  font-weight: 750;
  color: #263244;
}

.login-input {
  min-height: 54px;
  border-radius: 16px;
  border-color: rgba(15, 23, 42, .12);
  background: #f8fafc;
  padding-inline: 16px;
}

.login-input:focus {
  border-color: rgba(13, 110, 253, .75);
  box-shadow: 0 0 0 .24rem rgba(13, 110, 253, .12);
  background: #fff;
}

.login-button {
  width: 100%;
  min-height: 54px;
  border-radius: 16px;
  background: #0d6efd;
  border-color: #0d6efd;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 18px 36px rgba(13, 110, 253, .24);
}

.login-button:hover,
.login-button:focus {
  background: #0b5ed7;
  border-color: #0b5ed7;
  color: #fff;
}

.login-error {
  border-radius: 16px;
  background: #fff1f1;
  color: #b42318;
  border: 1px solid rgba(180, 35, 24, .18);
  padding: 13px 15px;
  margin-bottom: 18px;
  font-weight: 700;
}

.login-muted-link {
  color: #667085;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.login-muted-link:hover {
  color: #0d6efd;
}

.signed-in-card p {
  color: #5f6b7a;
  line-height: 1.7;
  margin-bottom: 28px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

@media (max-width: 860px) {
  .login-page {
    align-items: start;
    padding: 26px 16px;
  }

  .login-shell {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .login-brand {
    margin-bottom: 28px;
  }

  .login-hero h1 {
    font-size: 2.35rem;
  }

  .login-hero p {
    font-size: 1rem;
  }

  .login-benefits {
    margin-top: 24px;
  }

  .login-card,
  .signed-in-card {
    border-radius: 24px;
  }
}
