/* Widok logowania do rejestratora (/wejscie) - dedykowany arkusz.
   Celowo NIE korzysta z rejestrator-publiczny.css, ktory jest wspoldzielony
   przez panele publiczne rejestratora. */

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    /* ten sam gradient co hero na froncie */
    background: linear-gradient(170deg, #0f3f61 0%, #0b5f7f 40%, #0b5f7f 100%);
    color: #1d2f3c;
    font-family: "Nunito Sans", "Segoe UI", Arial, sans-serif;
    overflow-x: hidden;
}

.wejscie-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 32px 0;
}

/* ── Logo ─────────────────────────────────────────────────────────── */

.wejscie-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.wejscie-logo-icon {
    width: 30px;
    height: 30px;
    display: block;
}

.wejscie-logo:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
    border-radius: 8px;
}

/* ── Karta ────────────────────────────────────────────────────────── */

.wejscie-card {
    width: min(680px, 94vw);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(4, 25, 30, 0.28);
    padding: 26px 28px 0;
}

.head .wejscie-eyebrow, .wejscie-eyebrow {
    margin: 0 0 8px;
    color: #0f7c8a;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.wejscie-title {
    margin: 0;
    color: #1d2f3c;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
}

.wejscie-lead {
    margin: 8px 0 0;
    color: #5c7383;
    font-size: 14px;
    line-height: 1.5;
}

/* ── Formularz ────────────────────────────────────────────────────── */

.wejscie-form {
    margin-top: 20px;
    display: grid;
    gap: 16px;
}

.wejscie-field {
    display: grid;
    gap: 6px;
}

.wejscie-field label {
    color: #1d2f3c;
    font-size: 13px;
    font-weight: 700;
}

.wejscie-input {
    width: 100%;
    height: 44px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #1d2f3c;
    font-size: 15px;
    font-family: inherit;
    padding: 0 14px;
}

.wejscie-input::placeholder {
    color: #a9bac6;
}

.wejscie-input:focus {
    outline: none;
    border-color: #0f7c8a;
    box-shadow: 0 0 0 3px rgba(15, 124, 138, 0.14);
}

.wejscie-input-mono,
.wejscie-input-mono::placeholder {
    font-family: "SFMono-Regular", "Consolas", "Liberation Mono", "Menlo", monospace;
    letter-spacing: 0.02em;
}

.wejscie-input-wrap {
    position: relative;
    display: block;
}

.wejscie-input-wrap .wejscie-input {
    padding-right: 86px;
}

.wejscie-reveal {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    height: 32px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #5c7383;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.wejscie-reveal:hover {
    color: #0f7c8a;
    border-color: #0f7c8a;
}

.wejscie-reveal:focus-visible {
    outline: none;
    border-color: #0f7c8a;
    box-shadow: 0 0 0 3px rgba(15, 124, 138, 0.14);
}

.wejscie-submit {
    height: 48px;
    width: 100%;
    margin-top: 4px;
    border: 0;
    border-radius: 10px;
    background: #0f7c8a;
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

.wejscie-submit:hover {
    background: #0c6a76;
}

.wejscie-submit:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 124, 138, 0.35);
}

.wejscie-links {
    text-align: center;
}

.wejscie-links a {
    color: #0f7c8a;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.wejscie-links a:hover {
    text-decoration: underline;
}

.wejscie-links a:focus-visible {
    outline: 2px solid #0f7c8a;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Komunikaty ───────────────────────────────────────────────────── */

.wejscie-error {
    margin: 0;
    border-radius: 10px;
    border: 1px solid #f5c2c7;
    background: #fdf2f3;
    color: #b3253c;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 12px;
}

.wejscie-ok {
    margin: 0;
    border-radius: 10px;
    border: 1px solid #a9dcc3;
    background: #f1faf5;
    color: #0f6d43;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 12px;
}

/* ── Stopka karty ─────────────────────────────────────────────────── */

.wejscie-card-foot {
    margin-top: 22px;
    border-top: 1px solid #eef1f5;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wejscie-card-foot div {
    padding: 14px 0 18px;
}

.wejscie-card-foot div + div {
    border-left: 1px solid #eef1f5;
    padding-left: 18px;
}

.wejscie-card-foot span {
    display: block;
    color: #5c7383;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.wejscie-card-foot strong {
    display: block;
    color: #1d2f3c;
    font-size: 14px;
    font-weight: 700;
    font-family: "SFMono-Regular", "Consolas", "Liberation Mono", "Menlo", monospace;
}

/* ── Mobile ───────────────────────────────────────────────────────── */

@media (max-width: 560px) {
    .wejscie-page {
        gap: 18px;
        padding: 24px 0;
    }

    .wejscie-card {
        padding: 22px 18px 0;
    }

    .wejscie-title {
        font-size: 20px;
    }

    .wejscie-card-foot div + div {
        padding-left: 14px;
    }
}
