/* =============================================================================
   style.css – Stylesheet für öffentliche Seiten (Login, Landing, Register, Confirm)
   ============================================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0f1117;
  color: #e2e8f0;
  min-height: 100vh;
}

body.login {
  display: flex;
  align-items: center;
  justify-content: center;
}


/* ── Login ─────────────────────────────────────────────────────────────────── */

.card {
  background: #1a1d27;
  border: 1px solid #2d3148;
  border-radius: 6px;
  padding: 40px 44px;
  width: 360px;
}

.logo {
  text-align: center;
  margin-bottom: 28px;
}
.logo .icon { font-size: 2.4rem; }
.logo h1 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-top: 10px;
}
.logo p {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 4px;
}

.card label {
  display: block;
  font-size: 0.78rem;
  color: #94a3b8;
  margin-bottom: 6px;
  margin-top: 18px;
}

.card input {
  width: 100%;
  padding: 10px 14px;
  background: #0f1117;
  border: 1px solid #2d3148;
  border-radius: 4px;
  color: #e2e8f0;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s;
}
.card input:focus { border-color: #4f6bde; }
.card input::placeholder { color: #475569; }

.btn {
  margin-top: 28px;
  width: 100%;
  padding: 11px;
  background: #4f6bde;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.btn:hover { background: #3d58c4; }

.error {
  margin-top: 18px;
  padding: 10px 14px;
  background: #7f1d1d30;
  border: 1px solid #991b1b;
  border-radius: 4px;
  font-size: 0.82rem;
  color: #f87171;
  text-align: center;
}

.footer {
  margin-top: 24px;
  text-align: center;
  font-size: 0.72rem;
  color: #334155;
}


/* ── Landing Page ──────────────────────────────────────────────────────────── */

body.landing {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #0f1117;
}
.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 60px;
  border-bottom: 1px solid #1e2235;
  flex-shrink: 0;
}
.landing-nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f1f5f9;
  text-decoration: none;
}
.landing-nav .brand-icon { font-size: 1.3rem; }
.nav-links { display: flex; gap: 12px; align-items: center; }
.nav-link-ghost {
  padding: 7px 18px;
  border-radius: 4px;
  border: 1px solid #2d3148;
  background: transparent;
  color: #94a3b8;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}
.nav-link-ghost:hover { border-color: #4f5a8a; color: #e2e8f0; }
.nav-link-primary {
  padding: 7px 18px;
  border-radius: 4px;
  border: none;
  background: #4f6bde;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.nav-link-primary:hover { background: #3d58c4; }
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 60px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid #2d3670;
  background: #1a2050;
  color: #7c9ff5;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4f6bde;
}
.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.15;
  max-width: 680px;
  margin-bottom: 20px;
}
.hero h1 span { color: #4f6bde; }
.hero p {
  font-size: 1.05rem;
  color: #64748b;
  max-width: 520px;
  line-height: 1.65;
  margin-bottom: 44px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.btn-hero-primary {
  padding: 12px 32px;
  border-radius: 5px;
  border: none;
  background: #4f6bde;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-hero-primary:hover { background: #3d58c4; }
.btn-hero-ghost {
  padding: 12px 32px;
  border-radius: 5px;
  border: 1px solid #2d3148;
  background: transparent;
  color: #94a3b8;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-hero-ghost:hover { border-color: #4f5a8a; color: #e2e8f0; }
.features {
  padding: 0 48px 80px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card {
  background: #1a1d27;
  border: 1px solid #2d3148;
  border-radius: 6px;
  padding: 24px;
}
.feature-card:hover { border-color: #3d4870; }
.feature-icon { font-size: 1.6rem; margin-bottom: 14px; display: block; }
.feature-card h3 { font-size: 0.92rem; font-weight: 600; color: #f1f5f9; margin-bottom: 8px; }
.feature-card p { font-size: 0.82rem; color: #64748b; line-height: 1.6; }
.landing-footer {
  border-top: 1px solid #1e2235;
  padding: 20px 48px;
  text-align: center;
  font-size: 0.75rem;
  color: #334155;
}
@media (max-width: 768px) {
  .landing-nav { padding: 0 20px; }
  .hero h1 { font-size: 2rem; }
  .features { padding: 0 20px 60px; }
  .features-grid { grid-template-columns: 1fr; }
}


/* ── Register Page ─────────────────────────────────────────────────────────── */

body.register {
  background: #0f1117;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.reg-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 60px;
  border-bottom: 1px solid #1e2235;
  flex-shrink: 0;
}
.reg-nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f1f5f9;
  text-decoration: none;
}
.brand-icon { font-size: 1.3rem; }
.reg-nav-right { font-size: 0.83rem; color: #64748b; }
.reg-nav-right a { color: #7c9ff5; text-decoration: none; }
.reg-nav-right a:hover { text-decoration: underline; }
.reg-main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 24px;
}
.reg-wrap { width: 100%; max-width: 560px; }
.reg-header { text-align: center; margin-bottom: 32px; }
.reg-header h1 { font-size: 1.5rem; font-weight: 700; color: #f1f5f9; margin-bottom: 8px; }
.reg-header p { font-size: 0.87rem; color: #64748b; line-height: 1.6; }
.reg-section {
  background: #1a1d27;
  border: 1px solid #2d3148;
  border-radius: 6px;
  padding: 24px 28px;
  margin-bottom: 14px;
}
.reg-section h2 {
  font-size: 0.78rem;
  font-weight: 600;
  color: #7c9ff5;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.reg-section h2::after { content: ''; flex: 1; height: 1px; background: #2d3148; }
.reg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field.span2 { grid-column: 1 / -1; }
.field label { font-size: 0.75rem; color: #94a3b8; font-weight: 500; }
.field input {
  padding: 9px 13px;
  background: #0f1117;
  border: 1px solid #2d3148;
  border-radius: 4px;
  color: #e2e8f0;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.15s;
}
.field input:focus { border-color: #4f6bde; }
.field input::placeholder { color: #475569; }
.field .hint { font-size: 0.72rem; color: #475569; }
.token-section { display: none; }
.token-section.visible { display: block; }
.reg-submit { margin-top: 8px; }
.btn-register {
  width: 100%;
  padding: 12px;
  background: #4f6bde;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-register:hover { background: #3d58c4; }
.btn-register:disabled { background: #2d3670; color: #4f5a8a; cursor: not-allowed; }
.reg-msg {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 0.82rem;
  display: none;
}
.reg-msg.error   { background: #7f1d1d30; border: 1px solid #991b1b; color: #f87171; display: block; }
.reg-msg.success { background: #14532d30; border: 1px solid #166534; color: #4ade80; display: block; }
@media (max-width: 600px) {
  .reg-nav { padding: 0 16px; }
  .reg-main { padding: 24px 16px; }
  .reg-section { padding: 18px 16px; }
  .reg-grid { grid-template-columns: 1fr; }
}


/* ── Confirm Page ──────────────────────────────────────────────────────────── */

body.confirm-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}
.confirm-card {
  background: #1a1d27;
  border: 1px solid #2d3148;
  border-radius: 6px;
  padding: 44px 48px;
  max-width: 460px;
  width: 100%;
  text-align: center;
}
.confirm-icon { font-size: 2.8rem; margin-bottom: 20px; }
.confirm-card h1 { font-size: 1.1rem; font-weight: 600; margin-bottom: 12px; }
.confirm-card p {
  font-size: 0.87rem;
  color: #64748b;
  line-height: 1.65;
  margin-bottom: 28px;
}
.confirm-card a {
  display: inline-block;
  padding: 10px 28px;
  background: #4f6bde;
  border-radius: 4px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}
.confirm-card a:hover { background: #3d58c4; }
.state-success h1 { color: #4ade80; }
.state-error   h1 { color: #f87171; }
.state-already h1 { color: #fbbf24; }
