/* rqwire Mockup: Anmelden / Registrieren (de/login.html, en/login.html)
   Baut auf landing.css auf (gleiche Tokens, Buttons, Karten). Nur die zusätzlichen Bausteine stehen hier. */

.auth { max-width: 880px; margin: 40px auto 0; padding-bottom: 96px; }
.auth__head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.auth__head h1 { font-size: clamp(32px, 4.2vw, 48px); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; color: var(--ink); }
.auth__head p { max-width: 560px; font-size: 18px; line-height: 1.6; color: var(--muted); }

.auth__card { margin-top: 32px; padding: 32px; display: flex; flex-direction: column; gap: 28px; }

/* Umschalter Anmelden / Registrieren */
.seg { align-self: center; display: inline-flex; padding: 4px; gap: 2px; border-radius: var(--r-pill); background: var(--surface-3); }
.seg button { height: 44px; padding: 0 26px; border: 0; border-radius: var(--r-pill); background: none; font: inherit; font-size: 16px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--brand); box-shadow: 0 1px 2px rgba(16, 24, 64, 0.08), 0 2px 8px rgba(16, 24, 64, 0.06); }

.auth__step { display: flex; flex-direction: column; gap: 14px; }
.auth__label { font-size: 15px; font-weight: 600; color: var(--ink); }

/* Rollenwahl als große Karten (echte Radio-Buttons, per Tastatur bedienbar) */
.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; border: 0; margin: 0; padding: 0; }
.roles legend { padding: 0; margin-bottom: 14px; font-size: 15px; font-weight: 600; color: var(--ink); }
.rolecard { position: relative; padding: 22px; display: grid; grid-template-columns: 56px minmax(0, 1fr) 24px; gap: 16px; align-items: start; border-radius: var(--r-tile); background: var(--surface); border: 1.5px solid var(--line-2); cursor: pointer; transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease; }
.rolecard:hover { border-color: var(--outline); box-shadow: var(--shadow-card); }
.rolecard input { position: absolute; opacity: 0; pointer-events: none; }
.rolecard:has(input:focus-visible) { box-shadow: var(--ring); }
.rolecard:has(input:checked) { border-color: var(--brand); background: var(--blue-soft); box-shadow: 0 0 0 1px var(--brand); }
.rolecard__icon { width: 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--blue-line); }
.rolecard__icon img { width: 30px; height: 30px; object-fit: contain; }
.rolecard__text { display: flex; flex-direction: column; gap: 4px; }
.rolecard__title { font-size: 19px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); }
.rolecard__desc { font-size: 15px; line-height: 1.5; color: var(--muted); }
.rolecard__price { margin-top: 6px; align-self: flex-start; padding: 3px 10px; border-radius: var(--r-pill); background: var(--brand-tint); color: var(--brand); font-size: 13px; font-weight: 600; }
.rolecard__check { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--outline); display: inline-flex; align-items: center; justify-content: center; color: transparent; transition: all 0.15s ease; }
.rolecard:has(input:checked) .rolecard__check { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

/* Formular */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.form .field--full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 15px; font-weight: 600; color: var(--ink); }
.field input { height: 52px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: var(--r-icon); background: var(--surface); font: inherit; font-size: 16px; color: var(--ink); }
.field input:focus { outline: none; border-color: var(--brand-2); box-shadow: var(--ring); }
.field input[aria-invalid="true"] { border-color: #d92d20; }
.field__error { font-size: 14px; font-weight: 500; color: #b42318; }
.auth__hint { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-icon); background: var(--surface-2); border: 1px solid var(--line); font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.auth__hint .icon { margin-top: 3px; color: var(--brand); }
.auth__submit { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.auth__submit .btn { min-width: 320px; height: 56px; }
.auth__submit .btn[disabled] { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.auth__need { font-size: 14px; color: var(--muted); }
.auth__switch { text-align: center; font-size: 15px; color: var(--muted); }
.auth__switch button { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--brand); cursor: pointer; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.is-hidden { display: none !important; }

@media (max-width: 720px) {
  .roles, .form { grid-template-columns: minmax(0, 1fr); }
  .auth { margin-top: 20px; padding-bottom: 64px; }
  .auth__card { padding: 22px 18px; }
  .rolecard { grid-template-columns: 48px minmax(0, 1fr) 24px; padding: 18px; gap: 14px; }
  .rolecard__icon { width: 48px; height: 48px; }
  .auth__submit .btn { min-width: 0; width: 100%; }
  .seg { align-self: stretch; }
  .seg button { flex: 1 1 0; padding: 0 12px; }
}
