/* ============================================================
   style/login.css — Login + Register Page
   ------------------------------------------------------------
   TPv3-Brand-Stil. Centered Card auf Dark-Backdrop.
   ============================================================ */

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--brand-base, #161616);
  color: var(--brand-off, #F6F6F6);
  font-family: var(--brand-body, 'Inter', system-ui, sans-serif);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ============ Shell + Card ============ */
.auth-shell {
  min-height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 40px 20px;
  background: radial-gradient(ellipse at top, rgba(255, 78, 69, .04), transparent 50%);
}

.auth-card {
  max-width: 440px; width: 100%;
  background: var(--brand-card, #1c1c1c);
  border: 1px solid var(--brand-line, rgba(123, 123, 123, .18));
  border-radius: 18px;
  padding: clamp(28px, 4vw, 44px);
  position: relative;
  overflow: hidden;
}
.auth-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-accent, #FF4E45), transparent);
  opacity: .5;
}

/* ============ Head ============ */
.auth-head {
  text-align: center;
  margin-bottom: 32px;
}
.brand {
  font-family: var(--brand-display, 'Space Grotesk', system-ui, sans-serif);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 3rem);
  letter-spacing: -.025em;
  line-height: .95;
  margin-bottom: 6px;
}
.brand .dot {
  display: inline-block; width: .18em; height: .18em;
  border-radius: 50%; background: var(--brand-accent, #FF4E45);
  margin: 0 .04em 0 .06em; vertical-align: .15em;
}
.brand-eyebrow {
  font-family: var(--brand-mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: .68rem; letter-spacing: .22em;
  color: var(--brand-muted, #7B7B7B);
  text-transform: uppercase;
}

/* ============ Tabs ============ */
.auth-tabs {
  display: flex; gap: 4px;
  background: rgba(255, 255, 255, .03);
  border-radius: 10px; padding: 4px;
  margin-bottom: 24px;
}
.tab {
  flex: 1;
  font-family: var(--brand-mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600;
  padding: 10px 16px; border-radius: 8px;
  background: transparent; border: 1px solid transparent;
  color: var(--brand-muted, #7B7B7B);
  cursor: pointer;
  transition: background .2s var(--brand-ease, ease-out),
              color .2s var(--brand-ease, ease-out);
}
.tab:hover {
  color: var(--brand-off, #F6F6F6);
}
.tab.active {
  background: var(--brand-card, #1c1c1c);
  color: var(--brand-off, #F6F6F6);
  border-color: var(--brand-line, rgba(123, 123, 123, .18));
}

/* ============ Form ============ */
.auth-form { margin-bottom: 18px; }
.field { margin-bottom: 16px; }
.field-label {
  display: block;
  font-family: var(--brand-mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: .62rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--brand-muted, #7B7B7B);
  margin-bottom: 6px;
}
.field input {
  width: 100%; padding: 13px 14px; border-radius: 8px;
  background: var(--brand-base, #161616);
  border: 1px solid var(--brand-line, rgba(123, 123, 123, .18));
  color: var(--brand-off, #F6F6F6);
  font-family: var(--brand-body, 'Inter', system-ui, sans-serif);
  font-size: .95rem;
  transition: border-color .15s ease-out;
}
.field input:focus {
  outline: none; border-color: var(--brand-accent, #FF4E45);
}
.field-help {
  margin-top: 6px;
  font-family: var(--brand-mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: .58rem; letter-spacing: .04em;
  color: var(--brand-muted, #7B7B7B);
}
.field-error {
  margin: 8px 0 14px;
  padding: 10px 12px;
  background: rgba(255, 78, 69, .08);
  border: 1px solid rgba(255, 78, 69, .25);
  border-radius: 8px;
  font-size: .85rem; color: #ff9a92;
  line-height: 1.45;
}

/* ============ CTA ============ */
.auth-cta {
  width: 100%;
  font-family: var(--brand-mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  font-weight: 600;
  padding: 14px 22px; border-radius: 8px;
  background: var(--brand-accent, #FF4E45);
  color: var(--brand-base, #161616);
  border: 1px solid var(--brand-accent, #FF4E45);
  cursor: pointer;
  margin-top: 6px;
  transition: background .15s ease-out, transform .15s ease-out;
}
.auth-cta:hover { background: #ff6e66; transform: translateY(-1px); }
.auth-cta:disabled {
  opacity: .4; cursor: not-allowed; transform: none;
  background: var(--brand-accent, #FF4E45);
}

/* ============ Footer ============ */
.auth-foot {
  margin-top: 18px; padding-top: 18px;
  border-top: 1px solid var(--brand-line, rgba(123, 123, 123, .18));
  text-align: center;
  font-size: .85rem; color: var(--brand-muted, #7B7B7B);
}
.auth-foot a {
  color: var(--brand-accent, #FF4E45);
  text-decoration: none;
  font-weight: 500;
}
.auth-foot a:hover { color: #ff6e66; }

.auth-footer {
  margin-top: 32px;
  text-align: center;
  font-family: var(--brand-mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: .65rem; letter-spacing: .15em;
  color: var(--brand-muted, #7B7B7B);
}
.auth-footer .dot {
  display: inline-block; width: .22em; height: .22em;
  border-radius: 50%; background: var(--brand-accent, #FF4E45);
  margin: 0 .04em 0 .06em; vertical-align: .12em;
}

/* ============ Mobile ============ */
@media (max-width: 480px) {
  .auth-card { padding: 24px 20px; }
  .brand { font-size: 2rem; }
}
