.auth-page {
  background: #F8FAFC;
  color: #0B1120;
}

.auth-hero {
  padding: 58px 0 64px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.18) 0 1px, transparent 1px 100%),
    linear-gradient(135deg, #00AEEF 0%, #08a6dc 42%, #0474a6 100%);
  background-size: 26px 26px, auto;
}

.auth-shell {
  width: min(960px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
  gap: 0;
  padding: 10px;
  border-radius: 26px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(255,255,255,0.72);
  box-shadow: 0 28px 70px rgba(11,17,32,0.18);
}

.auth-intro {
  padding: 34px 30px;
  border-radius: 20px;
  border: 1px solid #b6e6f2;
  background: linear-gradient(160deg, #e0f7fa 0%, #ffffff 100%);
}

.auth-logo {
  display: block;
  width: min(190px, 70vw);
  height: auto;
  margin: 0 0 24px;
}

.auth-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0 0 18px;
  padding: 7px 16px;
  border-radius: 999px;
  background: #e0f7fa;
  border: 1px solid #b6e6f2;
  color: #0284c7;
  font-size: 0.82rem;
  font-weight: 900;
}

.auth-intro h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  font-weight: 900;
}

.auth-intro p {
  margin: 0;
  color: #475569;
  font-weight: 650;
  line-height: 1.65;
}

.auth-card {
  padding: 30px 28px;
  background: #fff;
  border-radius: 20px;
}

.auth-card h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 900;
}

.auth-card .lead {
  margin: 0 0 18px;
  color: #64748b;
  font-weight: 650;
  line-height: 1.55;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-form label,
.auth-label {
  font-weight: 900;
  font-size: 0.88rem;
  color: #0B1120;
}

.auth-input,
.auth-password-field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: #fff;
  color: #0B1120;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 14px;
}

.auth-input:focus,
.auth-password-field input:focus {
  outline: 3px solid rgba(0,174,239,0.22);
  border-color: #00AEEF;
}

.auth-password-field {
  position: relative;
}

.auth-password-field input {
  padding-right: 48px;
}

.auth-password-field button {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 36px;
  height: 36px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 10px;
  background: #f1f5f9;
  color: #334155;
  cursor: pointer;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 800;
}

.auth-link {
  color: #0284c7;
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-submit {
  margin-top: 4px;
}

.auth-status {
  min-height: 1.35em;
  color: #64748b;
  font-weight: 800;
  line-height: 1.45;
}

.auth-status[data-type="error"] {
  color: #b91c1c;
}

.auth-status[data-type="success"] {
  color: #15803d;
}

.auth-details {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
  color: #334155;
  font-weight: 750;
}

.auth-requirements {
  margin: 0;
  padding-left: 1.15rem;
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.6;
}

.auth-requirements .is-met {
  color: #15803d;
}

.auth-notice,
.auth-dev-panel {
  margin-top: 16px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #b6e6f2;
  background: #e0f7fa;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.55;
}

.auth-dev-panel {
  background: #fff;
  border-color: #e2e8f0;
}

.auth-dev-panel h2 {
  font-size: 1rem;
}

.auth-dev-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.auth-dev-list button {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 9px 10px;
  background: #f8fafc;
  color: #0B1120;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  text-align: left;
}

.auth-dev-password {
  margin: 10px 0 0;
}

.auth-state {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.auth-state--error {
  border-color: #fecaca;
  background: #fff7f7;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

@media (max-width: 820px) {
  .auth-shell {
    grid-template-columns: 1fr;
    width: min(100% - 28px, 620px);
    padding: 8px;
  }

  .auth-intro {
    padding: 24px 18px;
    text-align: center;
  }

  .auth-logo,
  .auth-pill {
    margin-left: auto;
    margin-right: auto;
  }

  .auth-card {
    padding: 22px 16px;
  }
}
