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

    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      background: #f0f4ff;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 32px 16px;
    }

    /* Logo */
    .page-logo { margin-bottom: 28px; }
    .page-logo img { height: 32px; display: block; }

    /* Karta formularza */
    .auth-box {
      background: #fff;
      border-radius: 20px;
      padding: 36px 40px 32px;
      width: 100%;
      max-width: 500px;
      box-shadow: 0 4px 32px rgba(0,0,0,.08);
    }
    @media (max-width: 540px) {
      .auth-box { padding: 28px 20px 24px; }
    }

    /* Nagłówek karty */
    .card-head {
      display: flex;
      align-items: center;
      gap: 14px;
      margin-bottom: 24px;
      padding-bottom: 20px;
      border-bottom: 1px solid #f3f4f6;
    }
    .role-icon {
      width: 52px; height: 52px;
      border-radius: 14px;
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
    }
    .role-icon svg { width: 26px; height: 26px; }

    .card-head__text { flex: 1; min-width: 0; }
    .card-head__title { font-size: 18px; font-weight: 900; color: #111827; }
    .card-head__back {
      font-size: 12px; color: #9ca3af; text-decoration: none;
      display: inline-flex; align-items: center; gap: 3px; margin-top: 3px;
      transition: color .15s;
    }
    .card-head__back:hover { color: #3b82f6; }

    /* Sekcje formularza */
    .section-label {
      font-size: 10px; font-weight: 900;
      text-transform: uppercase; letter-spacing: .08em;
      color: #9ca3af;
      margin: 22px 0 12px;
      display: flex; align-items: center; gap: 8px;
    }
    .section-label::after {
      content: ''; flex: 1; height: 1px; background: #f3f4f6;
    }

    /* Pola formularza */
    .f-field { margin-bottom: 14px; }
    .f-field label {
      display: block; font-size: 12px; font-weight: 700;
      color: #374151; margin-bottom: 5px;
    }
    .f-field label .opt { font-weight: 400; color: #9ca3af; }

    .input-wrap { position: relative; }
    .input-wrap svg.input-icon {
      position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
      width: 16px; height: 16px; color: #9ca3af; pointer-events: none;
      transition: color .15s;
    }
    .input-wrap:focus-within svg.input-icon { color: #3b82f6; }

    .f-field input {
      width: 100%;
      padding: 10px 14px;
      border: 1.5px solid #e5e7eb;
      border-radius: 10px;
      font-size: 14px;
      color: #111827;
      outline: none;
      transition: border-color .15s, box-shadow .15s;
      background: #fff;
      font-family: inherit;
    }
    .f-field input:focus {
      border-color: #3b82f6;
      box-shadow: 0 0 0 3px #eff6ff;
    }
    .input-wrap input { padding-left: 38px; }
    .f-hint { font-size: 11px; color: #9ca3af; margin-top: 4px; }

    /* NIP spinner */
    .nip-spinner {
      position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
      display: inline-flex; align-items: center; color: #9ca3af;
      animation: nip-spin 1s linear infinite;
    }
    @keyframes nip-spin { to { transform: translateY(-50%) rotate(360deg); } }

    .f-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    @media (max-width: 440px) { .f-two { grid-template-columns: 1fr; } }

    /* Przycisk pokaż/ukryj hasło */
    .pw-wrap { position: relative; }
    .pw-wrap input { padding-right: 44px; }
    .pw-toggle {
      position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
      background: none; border: none; cursor: pointer; padding: 2px;
      color: #9ca3af; display: flex; align-items: center;
      transition: color .15s;
    }
    .pw-toggle:hover { color: #374151; }
    .pw-toggle svg { width: 16px; height: 16px; }

    /* Siła hasła */
    .pw-strength { display: flex; gap: 4px; margin-top: 6px; }
    .pw-strength__bar {
      flex: 1; height: 3px; border-radius: 999px;
      background: #e5e7eb; transition: background .25s;
    }
    .pw-strength__bar.active-1 { background: #ef4444; }
    .pw-strength__bar.active-2 { background: #f59e0b; }
    .pw-strength__bar.active-3 { background: #3b82f6; }
    .pw-strength__bar.active-4 { background: #10b981; }

    /* Przycisk submit */
    .btn-submit {
      display: flex; align-items: center; justify-content: center; gap: 8px;
      width: 100%;
      padding: 13px;
      background: #3b82f6;
      color: #fff;
      border: none; border-radius: 11px;
      font-size: 15px; font-weight: 800;
      cursor: pointer; margin-top: 22px;
      transition: background .15s, transform .1s, box-shadow .15s;
      font-family: inherit;
      letter-spacing: -.1px;
    }
    .btn-submit:hover {
      filter: brightness(1.08);
      box-shadow: 0 4px 16px #eff6ff;
      transform: translateY(-1px);
    }
    .btn-submit:active { transform: translateY(0); }
    .btn-submit svg { width: 17px; height: 17px; }

    /* Alert błędu */
    .alert--error {
      background: #fee2e2; color: #991b1b;
      padding: 11px 14px; border-radius: 10px;
      font-size: 13px; margin-bottom: 18px;
      display: flex; gap: 8px; align-items: flex-start;
      line-height: 1.5;
    }
    .alert--error svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; }

    /* Stopka */
    .auth-footer {
      text-align: center; margin-top: 20px;
      font-size: 13px; color: #6b7280;
    }
    .auth-footer a { color: #3b82f6; font-weight: 700; text-decoration: none; }
    .auth-footer a:hover { text-decoration: underline; }
