.auth-body {
  background:
    radial-gradient(circle at 20% 20%, rgba(24, 112, 255, 0.30), transparent 26rem),
    radial-gradient(circle at 80% 10%, rgba(106, 13, 173, 0.25), transparent 24rem),
    linear-gradient(135deg, #09131f 0%, #142232 52%, #0a111b 100%);
  color: #edf4ff;
}

.auth-shell {
  display: grid;
  margin: 0 auto;
  min-height: 100vh;
  padding: 2rem 1rem;
  place-items: center;
  width: min(100%, 36rem);
}

.auth-card {
  background: rgba(8, 18, 31, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.25rem;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.42);
  padding: clamp(1.25rem, 4vw, 2rem);
  width: 100%;
  backdrop-filter: blur(16px);
}

.auth-brand {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.auth-brand__mark {
  background: linear-gradient(135deg, var(--mm-primary), var(--mm-accent));
  border-radius: 0.8rem;
  color: #fff;
  display: grid;
  font-weight: 900;
  height: 2.6rem;
  place-items: center;
  width: 2.6rem;
}

.auth-brand__text {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.auth-card h1 {
  font-size: clamp(1.8rem, 5vw, 2.35rem);
  margin: 0 0 0.5rem;
}

.auth-lead,
.auth-help {
  color: rgba(237, 244, 255, 0.78);
  line-height: 1.55;
  margin: 0 0 1rem;
}

.auth-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.form-field {
  display: grid;
  gap: 0.4rem;
}

.form-field span {
  color: rgba(237, 244, 255, 0.86);
  font-weight: 800;
}

.form-field input,
.form-field textarea {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.8rem;
  box-sizing: border-box;
  color: #fff;
  font: inherit;
  padding: 0.85rem 0.95rem;
  width: 100%;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(96, 165, 250, 0.9);
  box-shadow: 0 0 0 0.2rem rgba(96, 165, 250, 0.18);
  outline: none;
}

.form-field.is-filled span {
  color: #bfdbfe;
}

.field-help {
  color: rgba(237, 244, 255, 0.68);
}

.field-error {
  color: #fecaca;
  font-weight: 800;
}

.auth-actions {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.25rem;
}

.auth-actions--single {
  grid-template-columns: 1fr;
}

.auth-card a {
  color: #93c5fd;
}

.auth-actions a {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-width: 0;
  padding: 0.5rem 0;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.auth-actions a:hover,
.auth-actions a:focus {
  color: #fff;
  text-decoration: underline;
}

.auth-redirect-progress {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(147, 197, 253, 0.24);
  border-radius: 0.5rem;
  height: 0.65rem;
  margin-top: 1.25rem;
  overflow: hidden;
}

.auth-redirect-progress__bar {
  background: linear-gradient(90deg, var(--mm-primary), var(--mm-accent));
  display: block;
  height: 100%;
  transform-origin: left center;
  width: 100%;
}

.auth-redirect-status {
  color: rgba(237, 244, 255, 0.68);
  font-size: 0.9rem;
  margin: 0.5rem 0 0;
}

.dev-mail-hint {
  background: rgba(113, 63, 18, 0.35);
  border: 1px dashed rgba(250, 204, 21, 0.65);
  border-radius: 0.85rem;
  color: #fef3c7;
  margin: 1rem 0;
  padding: 1rem;
}

.dev-mail-hint code {
  color: #fff7ed;
}

@media (max-width: 380px) {
  .auth-actions a {
    font-size: 0.9rem;
  }
}

@media (max-width: 575.98px) {
  .auth-reset-result__login {
    box-sizing: border-box;
    width: 100%;
  }
}

.auth-invitation-kicker {
  align-items: center;
  color: #bfdbfe;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  gap: 0.4rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.7rem;
  text-transform: uppercase;
}

.auth-form input[readonly] {
  background: rgba(148, 163, 184, 0.11);
  color: rgba(237, 244, 255, 0.76);
  cursor: default;
}

.form-field.has-error input {
  border-color: rgba(248, 113, 113, 0.8);
  box-shadow: 0 0 0 0.16rem rgba(248, 113, 113, 0.11);
}

.auth-invitation-security {
  align-items: flex-start;
  color: rgba(237, 244, 255, 0.62);
  display: flex;
  font-size: 0.82rem;
  gap: 0.45rem;
  line-height: 1.5;
  margin: 1.1rem 0 0;
}

.auth-invitation-state {
  text-align: center;
}

.auth-invitation-state__icon {
  align-items: center;
  background: rgba(245, 158, 11, 0.13);
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 999px;
  color: #fde68a;
  display: inline-flex;
  font-size: 1.6rem;
  height: 4rem;
  justify-content: center;
  margin-bottom: 1rem;
  width: 4rem;
}
