:root {
    --bg: #f3f4f6;
    --card: #ffffff;
    --ink: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
    --accent: #2563eb;
    --accent-ink: #ffffff;
    --ok-bg: #ecfdf5;
    --ok-ink: #065f46;
    --err-bg: #fef2f2;
    --err-ink: #991b1b;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.5;
}

.wrap {
    max-width: 720px;
    margin: 40px auto;
    padding: 0 16px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

.gate { max-width: 420px; margin: 0 auto; text-align: center; }

.wrap--gate {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    display: block;
    max-width: 110px;
    width: 100%;
    height: auto;
    margin: 0 auto 22px;
}

h1 { margin: 0 0 8px; font-size: 22px; }
.muted { color: var(--muted); margin-top: 0; }

.section {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px;
    margin: 18px 0;
}

.section legend {
    font-weight: 700;
    padding: 0 8px;
    color: var(--accent);
}

.note {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin: 0 0 14px;
}

.secure-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fefce8;
    border: 1px solid #facc15;
    border-left: 4px solid #eab308;
    border-radius: 8px;
    padding: 12px 14px;
    margin: 16px 0 4px;
    font-size: 13px;
    color: #713f12;
    line-height: 1.45;
}
.secure-note__icon { font-size: 18px; line-height: 1; }
.secure-note strong { color: #854d0e; }

.note a { color: #1d4ed8; font-weight: 600; word-break: break-all; }

.copybox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.copybox code {
    background: #dbeafe;
    border: 1px solid #93c5fd;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 13px;
    color: #1e3a8a;
}
.copy-btn {
    background: #1d4ed8;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.copy-btn:hover { filter: brightness(.95); }
.copy-btn.copied { background: #059669; }

.field, label.field { display: block; margin: 12px 0; }
.lbl { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.req { color: #dc2626; font-style: normal; }
.opt { color: #9ca3af; font-style: normal; font-size: 11px; }

input[type="text"],
input[type="password"],
input[type="email"],
input[type="url"],
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

.check { display: flex; align-items: center; gap: 8px; margin: 10px 0; cursor: pointer; }
.check input { width: 18px; height: 18px; }

.radios { display: flex; gap: 16px; flex-wrap: wrap; }

.field-note {
    margin: 8px 0 0;
    font-size: 12px;
    color: #92400e;
    background: #fffbeb;
    border-left: 3px solid #f59e0b;
    padding: 8px 10px;
    border-radius: 0 6px 6px 0;
}
.radio { display: flex; align-items: center; gap: 6px; cursor: pointer; }

.btn {
    display: inline-block;
    background: var(--accent);
    color: var(--accent-ink);
    border: none;
    border-radius: 8px;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    text-decoration: none;
}
.btn:hover { filter: brightness(.95); }
.btn-ghost { background: #fff; color: var(--accent); border: 1px solid var(--accent); }

.alert { padding: 12px 14px; border-radius: 8px; margin: 12px 0; font-size: 14px; }
.alert-error { background: var(--err-bg); color: var(--err-ink); }
.alert-success { background: var(--ok-bg); color: var(--ok-ink); }

/* honeypot – ukryte przed ludźmi */
.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 480px) {
    .card { padding: 18px; }
    .wrap { margin: 20px auto; }
}
