/* Keep styling consistent with the login page - login.css wird direkt in index.php geladen */

/* Site Header */
.siteHeader {
  background: var(--bg1);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.siteHeaderInner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.siteLogo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1.125rem;
  transition: opacity 0.2s;
}

.siteLogo:hover {
  opacity: 0.8;
}

.siteLogoIcon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.25), transparent 40%),
    linear-gradient(135deg, rgba(47,123,255,0.95), rgba(14,165,255,0.85));
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 4px 12px rgba(47, 123, 255, 0.22);
}

.siteNav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.siteNavLink {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.siteNavLink:hover,
.siteNavLink.active {
  color: var(--blue2);
}

/* Register-specific 2-column layout */
.page {
  padding: 60px 18px 32px;
  margin-top: 20px;
}

.registerGrid {
  display: grid;
  grid-template-columns: 560px 560px;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  align-items: start;
}

.card {
  width: 100%;
  max-width: 560px;
}

.siteFooter {
  margin-top: 24px;
  padding: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.50);
  font-size: 0.8125rem;
  background: var(--bg0);
}

.footerLinks {
  display: flex;
  gap: 8px;
  align-items: center;
}

.footerLinks a {
  color: rgba(255,255,255,0.50);
  text-decoration: none;
  transition: color 0.2s;
}

.footerLinks a:hover {
  color: var(--blue2);
}

.field {
  margin: 12px 0;
}

.footer {
  margin-top: 14px;
}

.subtitle {
  max-width: 48ch;
}

.termsRow {
  display: flex;
  gap: 10px;
  align-items: center;
  color: rgba(255,255,255,0.78);
  font-size: 13px;
  line-height: 1.45;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.24);
  cursor: pointer;
}

.termsCheck {
  flex: 0 0 auto;
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.22);
  background:
    radial-gradient(220px 120px at 30% 0%, rgba(47,123,255,0.12), rgba(0,0,0,0) 55%),
    rgba(0,0,0,0.32);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.22);
}

.termsCheck:checked {
  background: linear-gradient(135deg, rgba(47, 123, 255, 0.95), rgba(14, 165, 255, 0.92));
  border-color: rgba(255,255,255,0.20);
  box-shadow: 0 10px 26px rgba(47, 123, 255, 0.20);
}

.termsCheck:checked::after {
  content: '';
  width: 9px;
  height: 5px;
  border-left: 2px solid rgba(255,255,255,0.96);
  border-bottom: 2px solid rgba(255,255,255,0.96);
  transform: rotate(-45deg);
  margin-top: -1px;
}

.termsCheck:focus-visible {
  outline: none;
}

.termsText {
  flex: 1 1 auto;
  min-width: 0;
}

.termsLink {
  color: var(--blue2);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

.termsLink:hover {
  filter: brightness(1.12);
}

.termsLink:focus-visible {
  outline: 2px solid rgba(47, 123, 255, 0.65);
  outline-offset: 2px;
  border-radius: 4px;
}

.termsRow:focus-within {
  border-color: rgba(47, 123, 255, 0.65);
  box-shadow: 0 0 0 4px rgba(47, 123, 255, 0.18);
}

.whyBox {
  border-radius: var(--radius);
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(58, 123, 255, 0.15), transparent 60%),
    radial-gradient(500px 250px at 50% 100%, rgba(45, 212, 255, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(58, 123, 255, 0.10),
    inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  padding: 26px;
  position: sticky;
  top: 28px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.whyBox::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background:
    radial-gradient(400px 200px at 50% 0%, rgba(58, 123, 255, 0.12), transparent 55%);
  pointer-events: none;
}

.whyHeader {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.whyIcon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.20), transparent 60%),
    linear-gradient(135deg, rgba(58, 123, 255, 0.95), rgba(45, 212, 255, 0.85));
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow:
    0 12px 28px rgba(58, 123, 255, 0.35),
    inset 0 1px 0 rgba(255,255,255,0.20);
}

.whyTitle {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.3px;
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(255,255,255,0.82));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.whyList {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 1;
  flex: 1;
}

.whyItem {
  display: flex;
  gap: 14px;
  align-item6: flex-start;
  padding: 14px;
  border-radius: 12px;
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 200ms ease;
}

.whyItem:hover {
  background: rgba(0,0,0,0.24);
  border-color: rgba(58, 123, 255, 0.25);
  transform: translateX(4px);
}

.whyItemIcon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15), transparent 60%),
    linear-gradient(135deg, rgba(58, 123, 255, 0.75), rgba(45, 212, 255, 0.50));
  border: 1px solid rgba(58, 123, 255, 0.30);
  flex-shrink: 0;
  margin-top: 2px;
  box-shadow: 0 8px 18px rgba(58, 123, 255, 0.25);
}

.whyItemTitle {
  font-weight: 800;
  font-size: 15px;
  color: rgba(255,255,255,0.96);
  margin-bottom: 4px;
  letter-spacing: 0.15px;
}

.whyItemText {
  font-size: 13px;
  color: rgba(255,255,255,0.68);
  line-height: 1.5;
}

.whyFooter {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.10);
  position: relative;
  z-index: 1;
}

.whyBadge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background:
    radial-gradient(200px 100px at 50% 0%, rgba(58, 123, 255, 0.18), transparent 60%),
    rgba(58, 123, 255, 0.12);
  border: 1px solid rgba(58, 123, 255, 0.30);
  font-size: 13px;
  color: rgba(255,255,255,0.88);
  font-weight: 750;
  box-shadow: 0 8px 20px rgba(58, 123, 255, 0.20);
}

.whyBadgeIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(58, 123, 255, 1), rgba(45, 212, 255, 0.95));
  color: white;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(58, 123, 255, 0.35);
}

.actions {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.backLink {
  color: rgba(255,255,255,0.62);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: all 160ms ease;
}

.backLink:hover {
  color: rgba(255,255,255,0.88);
  border-bottom-color: rgba(255,255,255,0.40);
}

.backLink:focus-visible {
  outline: none;
  color: var(--blue);
  border-bottom-color: var(--blue);
}

@media (max-width: 1050px) {
  .registerGrid {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .card {
    max-width: 100%;
  }

  .whyBox {
    position: relative;
    top: 0;
  }
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px 16px;
  z-index: 50;
}

.modal.isOpen { display: flex; }

.modalOverlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 440px at 50% 35%, rgba(47, 123, 255, 0.22), rgba(0,0,0,0) 60%),
    radial-gradient(640px 420px at 50% 75%, rgba(14, 165, 255, 0.14), rgba(0,0,0,0) 60%),
    rgba(0,0,0,0.62);
  backdrop-filter: blur(10px);
}

.modalDialog {
  position: relative;
  width: min(520px, 100%);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.085), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow:
    0 26px 80px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(47, 123, 255, 0.14),
    0 0 42px rgba(47, 123, 255, 0.16);
  padding: 18px 18px 20px;
  overflow: hidden;
}

.modalDialog .message {
  margin-top: 10px;
}

.modalDialog::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(700px 300px at 20% 0%, rgba(47, 123, 255, 0.18), rgba(0,0,0,0) 55%),
    radial-gradient(700px 300px at 80% 0%, rgba(14, 165, 255, 0.14), rgba(0,0,0,0) 55%);
}

.modalDialog::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  top: 12px;
  height: 1px;
  background: linear-gradient(90deg, rgba(47,123,255,0.0), rgba(47,123,255,0.55), rgba(14,165,255,0.35), rgba(14,165,255,0.0));
  pointer-events: none;
}

.modalHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.modalTitle {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.modalText {
  margin: 10px 0 6px 0;
  color: var(--muted2);
  font-size: 13px;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

.iconBtn {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.26);
  color: rgba(255,255,255,0.92);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.iconBtn:hover {
  border-color: rgba(255,255,255,0.24);
}

.iconBtn:active {
  transform: translateY(1px);
}

/* Verification code input */
#verifyForm {
  position: relative;
  z-index: 1;
}

#verify_code {
  text-align: center;
  letter-spacing: 0.32em;
  font-weight: 800;
  font-size: 20px;
  padding: 14px 14px;
  background:
    radial-gradient(500px 240px at 50% 0%, rgba(47,123,255,0.12), rgba(0,0,0,0) 60%),
    rgba(0,0,0,0.26);
  border: 1px solid rgba(255,255,255,0.18);
}

#verify_code:focus {
  border-color: rgba(47, 123, 255, 0.75);
  box-shadow: 0 0 0 4px rgba(47, 123, 255, 0.22);
}
