/* ═══════════════════════════════════════
   BROBOX AUTH — geteilte Form-Bausteine
   Genutzt von: my-brobox.html, auth-reset.html,
   auth-verify.html. Seitenspezifisches Layout
   (Shell, Intro, Features) bleibt in den Seiten.
   ═══════════════════════════════════════ */

/* Panel */
  .auth-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: clamp(30px, 3.5vw, 44px);
    max-width: 460px;
    justify-self: end;
    width: 100%;
    box-shadow: 0 28px 80px -50px rgba(50,72,86,0.30);
  }
  .auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--border);
    margin: -8px -8px 24px;
  }
  .auth-tab {
    background: none;
    border: 0;
    padding: 14px 10px;
    font-family: var(--font-display);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-dim);
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
  }
  .auth-tab:hover { color: var(--ink); }
  .auth-tab.is-active { color: var(--ink); }
  .auth-tab.is-active::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: -1px;
    height: 2px;
    background: var(--ink);
  }

  .auth-form { display: none; }
  .auth-form.is-active { display: block; }

  .auth-row { margin-bottom: 18px; }
  .auth-label {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 6px;
  }
  .auth-input {
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(35,35,40,0.18);
    border-radius: 0;
    padding: 8px 0;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--ink);
    outline: none;
    transition: border-bottom-color 0.2s;
  }
  .auth-input:focus { border-bottom-color: var(--ink); }
  .auth-input::placeholder { color: var(--text-dim); }

  .auth-row-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .auth-check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 4px 0 22px;
    cursor: pointer;
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--text-mid);
  }
  .auth-check input {
    appearance: none;
    width: 15px; height: 15px;
    flex: 0 0 auto;
    margin-top: 2px;
    border: 1px solid rgba(35,35,40,0.30);
    border-radius: 0;
    position: relative;
    cursor: pointer;
  }
  .auth-check input:checked {
    background: var(--ink);
    border-color: var(--ink);
  }
  .auth-check input:checked::after {
    content: '';
    position: absolute;
    left: 4px; top: 1px;
    width: 4px; height: 8px;
    border: solid #fff;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
  }
  .auth-check a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--border); }
  .auth-check a:hover { text-decoration-color: var(--ink); }

  .auth-submit {
    width: 100%;
    padding: 14px 20px;
    background: var(--ink);
    color: var(--ink-text);
    border: 0;
    border-radius: 0;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s, gap 0.2s;
  }
  .auth-submit:hover { background: #000; gap: 14px; }
  .auth-submit svg { width: 14px; height: 14px; }

  .auth-helper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    font-size: 11.5px;
    color: var(--text-dim);
  }
  .auth-helper a {
    color: var(--text-mid);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--border);
    transition: color 0.2s, text-decoration-color 0.2s;
  }
  .auth-helper a:hover { color: var(--ink); text-decoration-color: var(--ink); }

  .auth-foot {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    font-size: 11px;
    line-height: 1.55;
    color: var(--text-dim);
  }

  /* success state */
  .auth-success {
    display: none;
    padding: 24px 0;
    text-align: center;
  }
  .auth-success.is-active { display: block; }
  .auth-success-icon {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent);
    background: rgba(95,129,137,0.08);
    color: var(--accent-deep);
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
  }
  .auth-success-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
  }
  .auth-success-text {
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-mid);
  }

