.auth-shell {
  min-height: calc(100vh - 150px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 0;
}

.auth-card {
  width: min(100%, 440px);
  border: 1px solid rgba(108, 117, 125, .16);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .08);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

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

.auth-header {
  padding: 24px 28px 16px;
  border-bottom: 1px solid rgba(108, 117, 125, .12);
  background:
    radial-gradient(circle at top right, rgba(13, 110, 253, .09), transparent 38%),
    color-mix(in srgb, var(--bs-primary) 4%, var(--bs-body-bg));
}

.auth-header h1 {
  margin: 0;
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -.01em;
}

.auth-body {
  padding: 24px 28px 28px;
}

.auth-card .form-label {
  margin-bottom: 6px;
  font-weight: 600;
}

.auth-card .input-group-text,
.auth-card .form-control,
.auth-card .form-select,
.auth-card .btn {
  min-height: 44px;
}

.auth-card .input-group-text {
  border-color: rgba(108, 117, 125, .18);
}

.auth-card .form-control,
.auth-card .form-select {
  border-color: rgba(108, 117, 125, .18);
  box-shadow: none;
}

.auth-card .form-control:focus,
.auth-card .form-select:focus {
  border-color: rgba(13, 110, 253, .4);
  box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .08);
}

.auth-card .input-group {
  border-radius: 12px;
}

.auth-card .input-group > .form-control,
.auth-card .input-group > .form-select,
.auth-card .input-group > .input-group-text,
.auth-card .input-group > .btn {
  border-radius: 12px;
}

.auth-card .input-group > .input-group-text {
  padding-inline: .85rem;
}

.auth-card .btn-primary {
  border-radius: 12px;
  font-weight: 600;
}

.auth-card .btn-outline-secondary {
  border-color: rgba(108, 117, 125, .18);
}

.auth-captcha {
  width: 112px;
  height: 44px;
  cursor: pointer;
  object-fit: contain;
  flex: 0 0 112px;
  border: 1px solid rgba(108, 117, 125, .18);
}

.captcha-row {
  flex-wrap: nowrap;
  align-items: stretch;
}

.captcha-row .form-control {
  min-width: 0;
}

@media (max-width: 575.98px) {
  .auth-shell {
    align-items: center;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .auth-card {
    border-radius: 14px;
  }

  .auth-header,
  .auth-body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .auth-header {
    padding-top: 20px;
    padding-bottom: 14px;
  }

  .auth-body {
    padding-top: 20px;
    padding-bottom: 22px;
  }

  .auth-header h1 {
    font-size: 1.2rem;
  }

  .captcha-row {
    flex-wrap: nowrap;
    gap: 10px;
  }

  .auth-captcha {
    width: 96px;
    height: 42px;
    flex: 0 0 96px;
  }
}

html[data-bs-theme="dark"] .auth-card {
  border-color: rgba(255, 255, 255, .08);
  box-shadow: 0 26px 64px rgba(0, 0, 0, .28);
}

html[data-bs-theme="dark"] .auth-header {
  border-bottom-color: rgba(255, 255, 255, .08);
  background:
    radial-gradient(circle at top right, rgba(110, 168, 254, .16), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01));
}

html[data-bs-theme="dark"] .auth-card .input-group-text,
html[data-bs-theme="dark"] .auth-card .form-control,
html[data-bs-theme="dark"] .auth-card .form-select,
html[data-bs-theme="dark"] .auth-captcha,
html[data-bs-theme="dark"] .auth-card .btn-outline-secondary {
  border-color: rgba(255, 255, 255, .1);
}

html[data-bs-theme="dark"] .auth-card .form-control,
html[data-bs-theme="dark"] .auth-card .form-select,
html[data-bs-theme="dark"] .auth-card .input-group-text {
  background-color: rgba(255, 255, 255, .03);
}
