/**
 * The password screen on `app.dungeonknights.io`.
 *
 * This was an inline `<style>` block inside the component, on the belief that a stylesheet served
 * through the same gate could not style the page that opens the gate. That belief was wrong, and the
 * middleware says so two paragraphs up: a root-level file matching the static-file rule is **not**
 * gated, precisely so this screen can wear the real theme. A `<link>` also means the classes are
 * visible to `tools/check-styles.js`, which is how the mistake surfaced — nine class names in a
 * `<style>` tag appear to that audit as nine class names nothing styles.
 *
 * Only what the screen needs: a centred card, a password field, one button, one error line. It loads
 * nothing the game loads, because the page has to work before any cookie exists.
 */

html,
body {
    margin: 0;
    background: #12100E;
}

.gate-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at 50% 20%, rgba(212, 175, 55, 0.10), transparent 62%),
        #12100E;
    font-family: 'Inter', system-ui, sans-serif;
    color: #E8E0D4;
}

.gate-card {
    width: 100%;
    max-width: 420px;
    padding: 32px 28px 26px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.45);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 18px 50px rgba(0, 0, 0, 0.55);
    text-align: center;
}

.gate-title {
    margin: 0 0 6px;
    font-family: 'Cinzel Decorative', 'Cinzel', serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #D4AF37;
}

.gate-sub {
    margin: 0 0 22px;
    font-family: 'Cinzel', serif;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #8B7A2A;
}

.gate-note {
    margin: 0 0 18px;
    font-size: 12.5px;
    line-height: 1.6;
    color: #9d968a;
}

.gate-input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 4px;
    background: #0b0a09;
    color: #E8E0D4;
    font-family: inherit;
    font-size: 14px;
    letter-spacing: 1px;
    outline: none;
}

.gate-input:focus {
    border-color: #D4AF37;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.16);
}

.gate-button {
    width: 100%;
    margin-top: 12px;
    padding: 11px 16px;
    border: 1px solid #D4AF37;
    border-radius: 4px;
    background: linear-gradient(180deg, #3a3117, #241d0d);
    color: #F4D03F;
    font-family: 'Cinzel', serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
}

.gate-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.gate-error {
    margin-top: 12px;
    padding: 8px 10px;
    border: 1px solid rgba(200, 70, 60, 0.5);
    border-radius: 4px;
    background: rgba(200, 70, 60, 0.12);
    font-size: 12px;
    color: #e8a49b;
}

.gate-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    font-size: 11.5px;
    color: #6f6960;
}

.gate-footer a {
    color: #D4AF37;
    text-decoration: none;
}

.gate-footer a:hover {
    text-decoration: underline;
}
