/* Hespera auth surfaces — register / login / legal (blends with hx-auth-verify) */

.hx-auth {
  min-height: 100vh;
  padding: 2.5rem 0 3rem;
  display: flex;
  align-items: center;
}

.hx-auth__shell {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
}

.hx-auth__logo-wrap {
  display: flex;
  justify-content: center;
  margin: 0 auto 1.35rem;
}

.hx-auth__logo {
  display: block;
  max-height: 64px;
  max-width: min(280px, 72vw);
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.4));
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 167, 44, 0.22);
  border-radius: 14px;
  padding: 0.55rem 1rem;
}

.hx-social-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-bottom: 0.25rem;
}

.hx-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.96);
  color: #1e293b !important;
  font-weight: 650;
  font-size: 0.94rem;
  text-decoration: none !important;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.hx-social-btn:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
  color: #0f172a !important;
  text-decoration: none !important;
}

.hx-social-btn--google {
  border-color: rgba(66, 133, 244, 0.28);
}

.hx-social-btn--primary {
  height: 52px;
  font-size: 1.02rem;
  margin-bottom: 0.35rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.hx-auth__hint {
  text-align: center;
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 0.35rem 0 0.75rem;
  line-height: 1.45;
}

.hx-auth__link {
  color: #69e2b0;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
}

.hx-auth__link:hover {
  color: #bbf7d0;
  text-decoration: underline;
}

.hx-auth__submit--secondary {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: none;
}

.hx-auth__details {
  margin-top: 0.25rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px;
  padding: 0.65rem 0.9rem 0.9rem;
  background: rgba(255, 255, 255, 0.02);
}

.hx-auth__details summary {
  cursor: pointer;
  color: #a7f3d0;
  font-weight: 600;
  font-size: 0.9rem;
  outline: none;
  list-style: none;
}

.hx-auth__details summary::-webkit-details-marker {
  display: none;
}

.hx-auth__details summary::after {
  content: " ▾";
  color: #64748b;
  font-size: 0.8rem;
}

.hx-auth__details[open] summary::after {
  content: " ▴";
}

.hx-social-btn__icon {
  flex-shrink: 0;
}

.hx-social-btn__mdi {
  font-size: 1.15rem;
}

.hx-auth__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(212, 167, 44, 0.28);
  background: linear-gradient(160deg, rgba(12, 34, 24, 0.97) 0%, rgba(7, 22, 14, 0.99) 100%);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

@media (min-width: 992px) {
  .hx-auth__grid {
    grid-template-columns: minmax(280px, 0.92fr) 1.2fr;
  }
}

.hx-auth__brand {
  position: relative;
  padding: 2.25rem 1.85rem;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(212, 167, 44, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 90%, rgba(5, 128, 58, 0.28), transparent 50%),
    linear-gradient(165deg, #0b2418 0%, #06140e 100%);
  border-right: 1px solid rgba(148, 163, 184, 0.12);
  display: none;
}

@media (min-width: 992px) {
  .hx-auth__brand {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
  }
}

.hx-auth__kicker {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f0d060;
  margin-bottom: 0.75rem;
}

.hx-auth__brand h2 {
  margin: 0 0 0.75rem;
  font-size: 1.55rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hx-auth__brand p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #94a3b8;
}

.hx-auth__perks {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
}

.hx-auth__perks li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.hx-auth__perks li span {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(22, 163, 74, 0.18);
  color: #4ade80;
  font-size: 0.7rem;
  margin-top: 0.1rem;
}

.hx-auth__panel {
  padding: 1.75rem 1.5rem 1.5rem;
}

@media (min-width: 576px) {
  .hx-auth__panel {
    padding: 2rem 2rem 1.65rem;
  }
}

.hx-auth__title {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
  font-weight: 700;
  color: #f8fafc;
  text-align: center;
  letter-spacing: -0.02em;
}

.hx-auth__subtitle {
  margin: 0 0 1.35rem;
  text-align: center;
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.5;
}

.hx-auth__alert {
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  border: 1px solid transparent;
}

.hx-auth__alert--success {
  background: rgba(22, 163, 74, 0.12);
  border-color: rgba(74, 222, 128, 0.28);
  color: #bbf7d0;
}

.hx-auth__alert--error {
  background: rgba(220, 38, 38, 0.12);
  border-color: rgba(248, 113, 113, 0.28);
  color: #fecaca;
}

.hx-auth__alert ul {
  margin: 0;
  padding-left: 1.1rem;
}

.hx-auth__form .form-row-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 0.85rem;
}

@media (min-width: 576px) {
  .hx-auth__form .form-row-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.hx-auth__form .form-group {
  margin-bottom: 0.95rem;
}

.hx-auth__form label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a7f3d0 !important;
}

.hx-auth__form label .req {
  color: #f87171;
  font-weight: 700;
}

.hx-auth__form label .opt {
  color: #64748b;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.75rem;
}

.hx-auth__field {
  position: relative;
}

.hx-auth__field .fea,
.hx-auth__field i[data-feather] {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #69e2b0;
  pointer-events: none;
  z-index: 2;
}

.hx-auth__field select.fea-pad,
.hx-auth__field input.fea-pad {
  padding-left: 2.55rem !important;
}

.hx-auth__form .form-control {
  height: 46px;
  border-radius: 11px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: #f1f5f9;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.hx-auth__form .form-control::placeholder {
  color: #64748b;
}

.hx-auth__form .form-control:focus {
  border-color: rgba(105, 226, 176, 0.55);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(5, 128, 58, 0.22);
  color: #f8fafc;
  outline: none;
}

.hx-auth__form select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2369e2b0' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.2rem;
}

.hx-auth__form select.form-control option {
  background: #0f2419;
  color: #f1f5f9;
}

.hx-auth__error {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: #fca5a5;
}

.hx-auth__terms {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.35rem 0 1.1rem;
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.hx-auth__terms input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 1rem;
  height: 1rem;
  accent-color: #05803a;
  flex-shrink: 0;
}

.hx-auth__terms a {
  color: #69e2b0;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(105, 226, 176, 0.35);
}

.hx-auth__terms a:hover {
  color: #bbf7d0;
  border-bottom-color: #bbf7d0;
}

.hx-auth__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #059669 0%, #047857 55%, #065f46 100%);
  color: #fff !important;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 28px rgba(5, 128, 58, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
  cursor: pointer;
}

.hx-auth__submit:hover {
  filter: brightness(1.06);
  box-shadow: 0 12px 32px rgba(5, 128, 58, 0.45);
  transform: translateY(-1px);
  color: #fff !important;
}

.hx-auth__submit:active {
  transform: translateY(0);
}

.hx-auth__submit:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.hx-auth__divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.15rem 0 0.85rem;
  color: #64748b;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hx-auth__divider::before,
.hx-auth__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(148, 163, 184, 0.18);
}

.hx-auth__foot {
  text-align: center;
  margin-top: 1.15rem;
  font-size: 0.9rem;
  color: #94a3b8;
}

.hx-auth__foot a {
  color: #f8fafc;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(248, 250, 252, 0.25);
}

.hx-auth__foot a:hover {
  color: #69e2b0;
  border-bottom-color: #69e2b0;
}

.hx-auth__copy {
  text-align: center;
  margin-top: 1.35rem;
  font-size: 0.75rem;
  color: #64748b;
}

/* Standalone legal pages (privacy / terms) */
.hx-legal {
  min-height: 100vh;
  padding: 2rem 0 3rem;
}

.hx-legal__card {
  max-width: 820px;
  margin: 0 auto;
  border-radius: 18px;
  border: 1px solid rgba(212, 167, 44, 0.28);
  background: linear-gradient(160deg, rgba(12, 34, 24, 0.97) 0%, rgba(7, 22, 14, 0.99) 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
  overflow: hidden;
}

.hx-legal__head {
  padding: 1.75rem 1.75rem 1.25rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: radial-gradient(ellipse 70% 80% at 10% 0%, rgba(212, 167, 44, 0.12), transparent 55%);
}

.hx-legal__head .hx-auth__kicker {
  margin-bottom: 0.5rem;
}

.hx-legal__head h1 {
  margin: 0 0 0.4rem;
  font-size: 1.55rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.02em;
}

.hx-legal__head p {
  margin: 0;
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.55;
}

.hx-legal__body {
  padding: 1.5rem 1.75rem 1.75rem;
  color: #e2e8f0;
  font-size: 0.95rem;
  line-height: 1.75;
}

.hx-legal__body h2 {
  margin: 1.5rem 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #a7f3d0;
  letter-spacing: 0.01em;
}

.hx-legal__body h2:first-child {
  margin-top: 0;
}

.hx-legal__body p {
  margin: 0 0 0.85rem;
  color: #cbd5e1;
}

.hx-legal__body a {
  color: #69e2b0;
  font-weight: 600;
}

.hx-legal__body ul {
  margin: 0 0 0.85rem;
  padding-left: 1.2rem;
  color: #cbd5e1;
}

.hx-legal__body li {
  margin-bottom: 0.35rem;
}

.hx-legal__meta {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 0.82rem;
  color: #64748b;
  font-style: italic;
}

.hx-legal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.hx-legal__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.12s ease, border-color 0.12s ease;
}

.hx-legal__btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(105, 226, 176, 0.4);
  color: #f8fafc;
  text-decoration: none;
}

.hx-legal__btn--primary {
  background: linear-gradient(135deg, #059669, #047857);
  border-color: transparent;
  color: #fff;
}

.hx-legal__btn--primary:hover {
  filter: brightness(1.06);
  color: #fff;
}
