:root {
    --blue: #003870;
    --blue-dark: #00294f;
    --blue-light: #eef5fb;
    --text: #172033;
    --muted: #5d6878;
    --line: #dbe5ee;
    --danger-bg: #fff3f3;
    --danger: #9f1c1c;
    --shadow: 0 24px 70px rgba(0, 56, 112, .10);
}

* { box-sizing: border-box; }

html { font-family: Arial, Helvetica, sans-serif; color: var(--text); background: #fff; }

body {
    margin: 0;
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    background:
        radial-gradient(circle at 50% 30%, rgba(0, 56, 112, .045), transparent 38%),
        #fff;
}

a { color: inherit; }

.shell {
    width: min(920px, calc(100% - 40px));
    margin-inline: auto;
}

.site-header {
    border-bottom: 1px solid #edf1f5;
    background: rgba(255,255,255,.94);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    color: var(--blue);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
}

.lang {
    color: var(--blue);
    text-decoration: none;
    font-weight: 700;
    border-left: 1px solid var(--line);
    padding-left: 18px;
}

main {
    display: grid;
    align-items: center;
    padding-block: 64px;
}

.gate-card {
    width: min(680px, 100%);
    margin-inline: auto;
    padding: clamp(28px, 5vw, 52px);
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255,255,255,.98);
    box-shadow: var(--shadow);
    text-align: center;
}

.lock-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--blue);
}

.eyebrow {
    margin: 0 0 7px;
    color: var(--blue);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
}

h1 {
    margin: 0;
    color: var(--blue);
    font-size: clamp(2rem, 5vw, 2.7rem);
    line-height: 1.1;
}

.intro {
    max-width: 540px;
    margin: 18px auto 30px;
    color: var(--muted);
    line-height: 1.65;
}

.gate-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    width: min(520px, 100%);
    margin: 0 auto;
}

input[type="password"] {
    width: 100%;
    min-height: 48px;
    border: 1px solid #aebfd0;
    border-radius: 7px;
    padding: 0 14px;
    font: inherit;
    outline: none;
}

input[type="password"]:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0,56,112,.10);
}

.button {
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid var(--blue);
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.button.primary {
    color: #fff;
    background: var(--blue);
}

.button.primary:hover { background: var(--blue-dark); }

.button.secondary {
    color: var(--blue);
    background: #fff;
}

.error {
    width: min(520px, 100%);
    margin: 0 auto 18px;
    padding: 12px 14px;
    border: 1px solid #efc2c2;
    border-radius: 7px;
    color: var(--danger);
    background: var(--danger-bg);
    font-size: .92rem;
}

.documents {
    display: grid;
    gap: 12px;
    text-align: left;
}

.document {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    background: #fbfdff;
}

.document strong {
    display: block;
    color: var(--blue);
    margin-bottom: 3px;
}

.document span {
    color: var(--muted);
    font-size: .82rem;
}

.actions {
    display: flex;
    gap: 8px;
}

.actions .button {
    min-height: 40px;
    padding-inline: 15px;
    font-size: .9rem;
}

.text-link {
    display: inline-block;
    margin-top: 24px;
    color: var(--blue);
    font-weight: 700;
    text-decoration: none;
}

.text-link:hover { text-decoration: underline; }

.muted { color: var(--muted); }

.footer-actions {
    display: flex;
    justify-content: center;
    gap: 26px;
    flex-wrap: wrap;
}

.back-link { margin-top: 28px; }

.site-footer {
    padding: 20px 0;
    color: #fff;
    background: var(--blue-dark);
    font-size: .82rem;
    text-align: center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 640px) {
    .shell { width: min(100% - 28px, 920px); }

    main { padding-block: 36px; }

    .gate-card {
        padding: 28px 20px;
        border-radius: 14px;
    }

    .gate-form {
        grid-template-columns: 1fr;
    }

    .document {
        align-items: stretch;
        flex-direction: column;
    }

    .actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .actions .button { width: 100%; }
}
