body.subhub-auth {
  min-height: 100vh;
  margin: 0;
  letter-spacing: 0.005em;
  background:
    radial-gradient(circle at top left, rgba(183, 149, 98, 0.18), transparent 30%),
    radial-gradient(circle at bottom right, rgba(83, 107, 145, 0.12), transparent 32%),
    linear-gradient(180deg, #fbfaf8 0%, var(--subhub-front-bg) 52%, var(--subhub-bg) 100%) !important;
}

.subhub-auth .auth-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 56px);
  padding: clamp(24px, 5vw, 48px) 16px;
  overflow: hidden;
}

.subhub-auth .auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  padding: clamp(22px, 3vw, 30px);
}

.subhub-auth .auth-wrapper::before,
.subhub-auth .auth-wrapper::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  opacity: 0.12;
  filter: blur(6px);
}

.subhub-auth .auth-wrapper::before {
  left: -120px;
  top: -120px;
  background: var(--subhub-primary);
}

.subhub-auth .auth-wrapper::after {
  right: -120px;
  bottom: -120px;
  background: var(--subhub-accent);
}

.subhub-auth .brand-header {
  margin-bottom: 2rem;
  text-align: center;
}

.subhub-auth .brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.subhub-auth .auth-box,
.subhub-auth .card {
  border: 1px solid var(--subhub-line);
  border-radius: var(--subhub-radius-lg);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--subhub-shadow-md);
}

.subhub-auth .btn-primary {
  border-color: var(--subhub-primary);
  background: var(--subhub-primary);
}

.subhub-auth .btn-primary:hover,
.subhub-auth .btn-primary:focus {
  border-color: var(--subhub-primary-deep);
  background: var(--subhub-primary-deep);
}

.subhub-auth .btn-gradient {
  --g1: var(--subhub-primary);
  --g2: var(--subhub-primary-deep);
  border: 0;
  border-radius: 12px;
  padding: 10px 16px;
  color: #fff;
  font-weight: 700;
  background-image: linear-gradient(135deg, var(--g1), var(--g2));
  box-shadow: 0 8px 18px rgba(34, 51, 79, 0.18);
  transition: transform .08s ease, box-shadow .2s ease, filter .2s ease;
}

.subhub-auth .btn-gradient:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(34, 51, 79, 0.22);
}

.subhub-auth .btn-outline-primary {
  border-color: rgba(83, 107, 145, 0.3);
  color: var(--subhub-primary);
}

.subhub-auth .btn-outline-primary:hover,
.subhub-auth .btn-outline-primary:focus {
  border-color: var(--subhub-primary);
  color: #fff;
  background: var(--subhub-primary);
}

.subhub-auth .form-control {
  border-color: var(--subhub-line);
}

.subhub-auth .form-floating {
  position: relative;
}

.subhub-auth .form-floating > .form-control::placeholder {
  color: transparent !important;
  opacity: 0 !important;
}

.subhub-auth .form-floating > label {
  z-index: 3;
  color: var(--subhub-muted);
  pointer-events: none;
}

.subhub-auth .form-floating.subhub-password-field > .form-control {
  padding-right: 52px !important;
}

.subhub-auth .form-floating.subhub-password-field > .subhub-password-toggle {
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
}

.subhub-auth .form-control:focus {
  border-color: var(--subhub-primary);
  box-shadow: 0 0 0 .25rem rgba(83, 107, 145, 0.14);
}

.subhub-auth .auth-title,
.subhub-auth .text-link,
.subhub-auth .form-check label:hover {
  color: var(--subhub-primary);
}

.subhub-auth .auth-title {
  margin: 4px 0 8px;
  color: var(--subhub-primary-deep);
  font-weight: 800;
  text-align: center;
}

.subhub-auth .auth-subtitle {
  color: var(--subhub-muted);
  text-align: center;
}

.subhub-auth .divider {
  position: relative;
  color: var(--subhub-muted);
  text-align: center;
}

.subhub-auth .divider::before,
.subhub-auth .divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: linear-gradient(90deg, rgba(102, 114, 134, 0), rgba(102, 114, 134, .32), rgba(102, 114, 134, 0));
}

.subhub-auth .divider::before {
  left: 0;
}

.subhub-auth .divider::after {
  right: 0;
}

.subhub-auth .form-check {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  color: var(--subhub-muted);
}

.subhub-auth .form-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(83, 107, 145, 0.32);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
}

.subhub-auth .form-check input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.subhub-auth .form-check label {
  cursor: pointer;
  user-select: none;
  font-size: .9rem;
  font-weight: 500;
}

.subhub-auth .text-link:hover {
  color: var(--subhub-primary-deep);
}

.subhub-auth .form-check-input:checked,
.subhub-auth .form-check input[type="checkbox"]:checked {
  border-color: var(--subhub-primary);
  background: linear-gradient(135deg, var(--subhub-primary), var(--subhub-primary-deep));
}

.subhub-auth .form-check input[type="checkbox"] {
  border-color: rgba(83, 107, 145, 0.32);
}

.subhub-auth .form-check input[type="checkbox"]:hover {
  border-color: rgba(83, 107, 145, 0.52);
  box-shadow: 0 2px 8px rgba(83, 107, 145, 0.16);
}

.subhub-auth .image-code,
.subhub-auth .prompt-image-code {
  border-color: rgba(83, 107, 145, 0.22);
  cursor: pointer;
}

.subhub-auth .brand-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  box-shadow: 0 12px 24px rgba(34, 51, 79, 0.16);
  transition: transform .2s ease, box-shadow .2s ease;
}

.subhub-auth .brand-icon:hover {
  transform: scale(1.04);
  box-shadow: 0 16px 30px rgba(34, 51, 79, 0.2);
}

.subhub-auth-footer {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 0 18px 24px;
  color: var(--subhub-muted);
  font-size: 13px;
}
