.shell-auth {
  background:
    radial-gradient(circle at 100% 50%, rgba(37, 99, 235, 0.12), transparent 26%),
    radial-gradient(circle at 0% 100%, rgba(96, 165, 250, 0.1), transparent 24%),
    linear-gradient(rgba(219, 232, 255, 0.72) 1px, transparent 1px),
    linear-gradient(90deg, rgba(219, 232, 255, 0.72) 1px, transparent 1px),
    #fbfdff;
  background-size: auto, auto, 86px 86px, 86px 86px, auto;
}

.auth-shell {
  min-height: 100vh;
  padding: clamp(1.5rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-shell__main {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  display: grid;
  gap: 1.4rem;
  width: min(100%, 32rem);
  padding: clamp(1.75rem, 4vw, 2.35rem);
  border: 1px solid #dbe4f0;
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(10px);
}

.auth-card--form {
  width: min(100%, 34rem);
}

.auth-card--wide {
  width: min(100%, 42rem);
}

.auth-wordmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0 auto;
  color: #0f172a;
}

.auth-wordmark:hover {
  color: #0f172a;
}

.auth-wordmark__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 0.35rem;
  background: #2f63ea;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: var(--font-extrabold);
  line-height: 1;
}

.auth-wordmark__text {
  font-size: 1.05rem;
  font-weight: var(--font-medium);
  letter-spacing: -0.03em;
}

.auth-card__header,
.auth-card__footer,
.auth-form {
  display: grid;
  gap: 0.85rem;
}

.auth-card__header {
  text-align: center;
}

.auth-card__title {
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.auth-card__title--compact {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
}

.auth-card__subtitle {
  max-width: 30rem;
  margin: 0 auto;
  color: #4d5f7b;
  font-size: 1.02rem;
}

.auth-card__subtitle--centered {
  max-width: 22rem;
}

.auth-card .messages {
  margin-bottom: 0;
}

.auth-card .message {
  border-radius: 0.95rem;
  box-shadow: none;
}

.auth-form {
  gap: 1rem;
}

.auth-form .form-row {
  gap: 1rem;
}

.auth-form__heading,
.auth-form__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.auth-form__meta {
  justify-content: flex-start;
}

.auth-inline-link,
.auth-card__footer a,
.auth-legal a {
  color: #2556db;
  font-weight: var(--font-semibold);
}

.auth-inline-link:hover,
.auth-card__footer a:hover,
.auth-legal a:hover {
  color: #1d4ed8;
}

.shell-auth .form-label {
  font-weight: var(--font-bold);
  color: #0f172a;
}

.shell-auth .form-input {
  min-height: 3.25rem;
  border-color: #d7e1ed;
  border-radius: 0.85rem;
  padding: 0.92rem 1rem;
  background: #ffffff;
  box-shadow: none;
}

.shell-auth .form-input::placeholder {
  color: #60728f;
}

.shell-auth .form-input:focus {
  border-color: #2f63ea;
  box-shadow: 0 0 0 4px rgba(47, 99, 234, 0.12);
}

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

.auth-password-field .form-input {
  padding-right: 4.75rem;
}

.auth-input-action {
  position: absolute;
  top: 50%;
  right: 0.9rem;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #2556db;
  font-size: 0.98rem;
  font-weight: var(--font-semibold);
  padding: 0;
  box-shadow: none;
}

.auth-input-action:hover {
  color: #1d4ed8;
}

.auth-input-group {
  display: flex;
  align-items: stretch;
  border: 1px solid #d7e1ed;
  border-radius: 0.85rem;
  overflow: hidden;
  background: #ffffff;
}

.auth-input-group:focus-within {
  border-color: #2f63ea;
  box-shadow: 0 0 0 4px rgba(47, 99, 234, 0.12);
}

.auth-input-group__prefix {
  display: inline-flex;
  align-items: center;
  padding: 0 0.9rem;
  border-right: 1px solid #d7e1ed;
  background: #f8fbff;
  color: #1f3f78;
  font-weight: var(--font-medium);
  white-space: nowrap;
}

.auth-input-group .form-input {
  border: 0;
  border-radius: 0;
}

.auth-input-group .form-input:focus {
  box-shadow: none;
}

.shell-auth .form-checkbox {
  align-items: flex-start;
  gap: 0.7rem;
  color: #4d5f7b;
}

.shell-auth .form-checkbox input[type="checkbox"],
.shell-auth .form-checkbox input[type="radio"] {
  width: 1rem;
  height: 1rem;
  margin-top: 0.2rem;
  accent-color: #2f63ea;
}

.auth-legal,
.auth-card__footer {
  text-align: center;
  color: #4d5f7b;
  font-size: 0.98rem;
}

.auth-divider {
  position: relative;
  text-align: center;
  color: #5f7190;
  font-size: 0.85rem;
  font-weight: var(--font-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-divider::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  border-top: 1px solid #dbe4f0;
}

.auth-divider span {
  position: relative;
  display: inline-block;
  padding: 0 0.9rem;
  background: rgba(255, 255, 255, 0.96);
}

.shell-auth .button {
  min-height: 3.35rem;
  border-radius: 0.85rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: var(--font-bold);
  box-shadow: none;
  transform: none;
}

.shell-auth .button:hover {
  transform: none;
  box-shadow: none;
}

.shell-auth .button--primary {
  background: #2f63ea;
}

.shell-auth .button--primary:hover {
  background: #2556db;
}

.shell-auth .button--secondary {
  border-color: #d7e1ed;
  background: #ffffff;
}

.shell-auth .button--secondary:hover {
  background: #f8fbff;
}

.auth-google-btn {
  gap: 0.7rem;
}

.auth-google-btn__icon {
  flex-shrink: 0;
}

.shell-auth .form-error {
  font-size: 0.82rem;
}

.info-banner {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.05rem;
  border: 1px solid #dbe4f0;
  border-radius: 0.95rem;
  background: #f8fbff;
}

.auth-card__footer {
  padding-top: 1rem;
  border-top: 1px solid #e7edf5;
}

.auth-card__footer--link {
  padding-top: 1.25rem;
}

@media (max-width: 720px) {
  .auth-shell {
    padding: 1rem;
  }

  .auth-card,
  .auth-card--form,
  .auth-card--wide {
    width: 100%;
    padding: 1.5rem 1.25rem;
    border-radius: 1.1rem;
  }

  .auth-form .form-row {
    grid-template-columns: 1fr;
  }

  .auth-form__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
  }
}
