/* ================================================
   enemail.de — Register Page Styles
   ================================================ */

body.register-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.reg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.reg-glow-1 {
  width: 600px; height: 600px;
  background: rgba(0, 119, 182, 0.14);
  top: -200px; left: -150px;
}
.reg-glow-2 {
  width: 400px; height: 400px;
  background: rgba(0, 229, 176, 0.08);
  bottom: -100px; right: -100px;
}

/* ── Logo ── */
.reg-logo-link {
  position: fixed;
  top: 20px;
  left: 28px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
}
.reg-logo-link strong { font-weight: 800; color: var(--cyan); }
.reg-logo-link:hover { color: var(--text-primary); }

/* ── Layout ── */
.reg-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ── Left panel ── */
.reg-panel {
  background: linear-gradient(160deg, rgba(0,200,255,.04) 0%, rgba(0,0,0,0) 60%);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 80px 60px;
}
.reg-panel-inner { max-width: 440px; }
.reg-panel-inner h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.reg-panel-sub {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 40px;
}

/* Benefits */
.reg-benefits { display: flex; flex-direction: column; gap: 24px; margin-bottom: 36px; }
.reg-benefit {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.rb-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(0,200,255,.1);
  border: 1px solid rgba(0,200,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  flex-shrink: 0;
}
.rb-title { font-weight: 600; font-size: 0.9rem; margin-bottom: 2px; }
.rb-desc  { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.55; }

/* Trust badges */
.reg-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: rgba(0,229,176,.06);
  border: 1px solid rgba(0,229,176,.2);
  border-radius: 100px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 600;
}

/* ── Form side ── */
.reg-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 40px 40px;
  overflow-y: auto;
}

.reg-card {
  width: 100%;
  max-width: 480px;
  padding: 36px 36px 28px;
}

.reg-card-header { text-align: center; margin-bottom: 28px; }
.reg-card-header h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 4px; }
.reg-card-header p  { font-size: 0.875rem; color: var(--text-muted); }

/* ── Step indicator ── */
.reg-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
}
.reg-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.reg-step span { font-size: 0.72rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.reg-step.active span { color: var(--cyan); }
.reg-step.done span   { color: var(--teal); }

.step-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  border: 2px solid var(--border-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all .3s;
}
.reg-step.active .step-dot {
  background: rgba(0,200,255,.15);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 16px rgba(0,200,255,.25);
}
.reg-step.done .step-dot {
  background: rgba(0,229,176,.15);
  border-color: var(--teal);
  color: var(--teal);
}

.step-line {
  width: 48px;
  height: 2px;
  background: var(--border);
  margin: 0 8px;
  margin-bottom: 24px;
  flex-shrink: 0;
}

/* ── Form elements ── */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 7px;
  letter-spacing: .01em;
}
.label-optional {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-muted);
  background: rgba(255,255,255,.04);
  padding: 2px 8px;
  border-radius: 100px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon {
  position: absolute;
  left: 13px;
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
}

.input-wrapper input {
  width: 100%;
  padding: 11px 14px 11px 38px;
  background: rgba(255,255,255,.04);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.9rem;
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.input-wrapper input::placeholder { color: var(--text-muted); }
.input-wrapper input:focus {
  border-color: var(--cyan);
  background: rgba(0,200,255,.04);
  box-shadow: 0 0 0 3px rgba(0,200,255,.12);
}
.input-wrapper input.error { border-color: #e53e3e; box-shadow: 0 0 0 3px rgba(229,62,62,.1); }
.input-wrapper input.valid { border-color: var(--teal); }

/* username domain suffix */
.input-domain {
  position: absolute;
  right: 13px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  pointer-events: none;
}
/* make room for domain suffix in username input */
#username { padding-right: 110px; }

/* password toggle */
.toggle-pw {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  padding: 4px;
  transition: color .2s;
}
.toggle-pw:hover { color: var(--text-primary); }

/* password strength */
.pw-strength {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.pw-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,.06);
  border-radius: 100px;
  overflow: hidden;
}
.pw-fill {
  height: 100%;
  width: 0%;
  border-radius: 100px;
  background: #e53e3e;
  transition: width .4s ease, background .4s ease;
}
.pw-label { font-size: 0.72rem; color: var(--text-muted); white-space: nowrap; min-width: 100px; text-align: right; }

/* hints & errors */
.field-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 5px;
}
.field-error {
  font-size: 0.75rem;
  color: #fc8181;
  margin-top: 5px;
  min-height: 16px;
}
.form-error-global {
  background: rgba(229,62,62,.08);
  border: 1px solid rgba(229,62,62,.25);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.82rem;
  color: #fc8181;
  margin-bottom: 16px;
  display: none;
}
.form-error-global.visible { display: block; }

/* checkboxes */
.form-checks { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1.5;
}
.check-label a { color: var(--cyan); }
.check-label input[type="checkbox"] { display: none; }
.checkmark {
  width: 18px; height: 18px;
  min-width: 18px;
  border-radius: 4px;
  border: 2px solid var(--border-hover);
  background: rgba(255,255,255,.03);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  transition: all .2s;
}
.check-label input:checked + .checkmark {
  background: var(--gradient-main);
  border-color: transparent;
}
.check-label input:checked + .checkmark::after {
  content: '';
  display: block;
  width: 5px; height: 9px;
  border: 2px solid #020e18;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}

/* ── reg button ── */
.reg-btn { width: 100%; justify-content: center; margin-bottom: 0; }

.reg-login-link {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 16px;
}
.reg-login-link a { color: var(--cyan); }

/* ── Step 2: Plan selector ── */
.step-title    { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.step-subtitle { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 20px; }

.plan-selector { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.plan-option {
  position: relative;
  cursor: pointer;
  display: block;
}
.plan-option input[type="radio"] { display: none; }
.plan-opt-inner {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: rgba(255,255,255,.02);
  transition: all .2s;
}
.plan-option input:checked + .plan-opt-inner,
.plan-option:hover .plan-opt-inner {
  border-color: rgba(0,200,255,.35);
  background: rgba(0,200,255,.05);
}
.plan-option input:checked + .plan-opt-inner .plan-radio-dot {
  background: var(--gradient-main);
  border-color: transparent;
}
.plan-option input:checked + .plan-opt-inner .plan-radio-dot::after { display: block; }

.plan-option-featured .plan-opt-inner {
  border-color: rgba(0,200,255,.25);
  background: linear-gradient(135deg, rgba(0,200,255,.07), rgba(0,229,176,.04));
}
.plan-opt-badge {
  position: absolute;
  top: -10px;
  left: 16px;
  background: var(--gradient-main);
  color: #020e18;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 100px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.plan-opt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.plan-opt-name  { font-size: 0.9rem; font-weight: 700; }
.plan-opt-price { font-size: 0.82rem; color: var(--text-muted); }

.plan-radio-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-hover);
  position: relative;
  flex-shrink: 0;
  transition: all .2s;
}
.plan-radio-dot::after {
  content: '';
  display: none;
  width: 6px; height: 6px;
  background: #020e18;
  border-radius: 50%;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
}

.plan-opt-features {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.plan-opt-features li {
  font-size: 0.78rem;
  color: var(--text-secondary);
  padding-left: 14px;
  position: relative;
}
.plan-opt-features li::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: var(--cyan);
}

.step-actions {
  display: flex;
  gap: 10px;
}
.step-actions .btn-outline { flex-shrink: 0; }
.step-actions .reg-btn { flex: 1; }

/* ── Step 3: Success ── */
.success-state { text-align: center; padding: 12px 0; }
.success-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(0,229,176,.1);
  border: 2px solid rgba(0,229,176,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  animation: successPop .5s cubic-bezier(.175,.885,.32,1.275) both;
}
.success-state h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; }
.success-state > p { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 20px; }

.success-warning {
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 24px;
  border-color: rgba(246,173,85,.2);
  background: rgba(246,173,85,.04) !important;
}
.success-warning svg { flex-shrink: 0; margin-top: 1px; }
.success-warning p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; }

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.success-actions .btn-outline,
.success-actions .btn-primary {
  justify-content: center;
}

/* ── Privacy note ── */
.reg-privacy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Animations ── */
@keyframes successPop {
  from { transform: scale(.5); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* ── Registration closed overlay ── */
.reg-closed-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 10, 20, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.reg-closed-box {
  width: 100%;
  max-width: 480px;
  padding: 44px 36px 36px;
  text-align: center;
  animation: fadeInUp .4s ease both;
}
.reg-closed-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(0,200,255,.08);
  border: 2px solid rgba(0,200,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
}
.reg-closed-title {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -.02em;
  margin-bottom: 12px;
  line-height: 1.2;
}
.reg-closed-sub {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 8px;
}
.reg-closed-sub strong { color: var(--cyan); }
.reg-closed-form { margin: 20px 0 0; }

.hidden { display: none !important; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .reg-layout { grid-template-columns: 1fr; }
  .reg-panel { display: none; }
  .reg-form-side { padding: 100px 24px 40px; }
  .reg-card { padding: 28px 22px 20px; }
  .reg-logo-link { top: 16px; left: 20px; }
}
