.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(58, 88, 196, 0.18), transparent 26%),
    radial-gradient(circle at bottom right, rgba(26, 88, 181, 0.24), transparent 30%),
    linear-gradient(180deg, #090c1d 0%, #0d1124 55%, #0a0d1b 100%);
}

.auth-main {
  min-height: 0 !important;
  height: auto !important;
  padding: 24px 20px 0 !important;
  margin: 0 !important;
  display: block;
}

.auth-card-wrap {
  width: 100%;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0 auto;
  padding: 0;
}

.auth-card-simple {
  width: 100%;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(27, 31, 58, 0.96), rgba(24, 27, 50, 0.96));
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
}

.auth-card-head {
  padding: 52px 48px 12px;
}

.auth-card-head h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.45rem);
  font-weight: 600;
  color: #ffffff;
}

.auth-card-head p {
  margin: 10px 0 0;
  color: #a9b2d1;
  font-size: 1.05rem;
}

.auth-form-simple {
  padding: 12px 48px 34px;
}

.auth-alert {
  margin: 0 48px 18px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 0.95rem;
}

.auth-alert-error {
  background: rgba(171, 48, 66, 0.22);
  border: 1px solid rgba(239, 102, 126, 0.28);
  color: #ffd8df;
}

.auth-alert-success {
  background: rgba(39, 129, 84, 0.22);
  border: 1px solid rgba(88, 212, 146, 0.28);
  color: #dbffe9;
}

.auth-field-group + .auth-field-group {
  margin-top: 18px;
}

.auth-field-group label {
  display: block;
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
}

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

.auth-inline-link {
  color: #a4b2e3;
  text-decoration: none;
  font-size: 0.95rem;
}

.auth-inline-link:hover,
.auth-card-footer a:hover {
  color: #ffffff;
}

.auth-input-shell {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  align-items: center;
  min-height: 54px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 13, 38, 0.82);
}

.auth-input-shell-static {
  grid-template-columns: 56px minmax(0, 1fr);
}

.auth-input-shell:focus-within {
  border-color: rgba(84, 145, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(72, 132, 239, 0.12);
}

.auth-input-icon,
.auth-visibility-btn {
  display: grid;
  place-items: center;
  width: 56px;
  height: 100%;
  color: #ffffff;
  background: rgba(5, 8, 29, 0.9);
}

.auth-input-shell input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 14px;
  background: transparent;
  color: #f4f7ff;
  font: inherit;
}

.auth-input-shell input::placeholder {
  color: #707aa5;
}

.auth-visibility-btn {
  border: 0;
  cursor: pointer;
}

.auth-turnstile,
.auth-helper-box {
  margin-top: 22px;
}

.auth-helper-box {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: #aeb8dc;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-actions-row {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.auth-primary-btn {
  min-width: 132px;
  min-height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #4d90d2 0%, #336ea8 100%);
  color: #ffffff;
  font-family: "Poppins", Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0;
  cursor: pointer;
  transform: perspective(900px) translateZ(0);
  transform-style: preserve-3d;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 18px rgba(48, 104, 168, 0.2);
}

.auth-primary-btn:hover {
  transform: perspective(900px) translateZ(18px);
  box-shadow: 0 8px 18px rgba(48, 104, 168, 0.2);
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 1rem;
}

.auth-check input {
  accent-color: #4d90d2;
}

.auth-card-footer {
  padding: 18px 48px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.auth-card-footer p {
  margin: 0;
  color: #ffffff;
}

.auth-card-footer a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.auth-policy-text {
  margin: 18px 0 0;
  color: #aeb8dc;
  line-height: 1.6;
}

.auth-policy-text a {
  color: #ffffff;
  text-decoration: none;
}

.auth-google-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #ffffff;
  color: #1d243c;
  text-decoration: none;
  font-weight: 500;
  margin: 0;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.auth-google-btn-inside {
  margin-top: 16px;
}

.auth-google-btn i {
  color: #ea4335;
  font-size: 1.1rem;
}

.auth-page .site-footer {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

@media (max-width: 768px) {
  .auth-main {
    padding: 24px 14px 0 !important;
  }

  .auth-card-head {
    padding: 32px 20px 10px;
  }

  .auth-form-simple {
    padding: 10px 20px 24px;
  }

  .auth-alert {
    margin: 0 20px 16px;
  }

  .auth-card-footer {
    padding: 18px 20px 20px;
  }

  .auth-actions-row {
    align-items: stretch;
  }

  .auth-primary-btn {
    width: 100%;
  }

  .auth-check {
    width: 100%;
    justify-content: flex-start;
  }

  .auth-label-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
