:root {
    color-scheme: dark;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #07131d;
    color: #f6f8fa;
}

* { box-sizing: border-box; }

body { margin: 0; min-width: 320px; min-height: 100vh; background: #07131d; }

button, input { font: inherit; }

.editor-access-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background: #07131d;
}

.editor-access-card {
    width: min(100%, 29rem);
    padding: 2rem;
    border: 1px solid rgba(125, 211, 252, .22);
    border-radius: .5rem;
    background: rgba(10, 31, 45, .96);
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, .28);
}

.editor-access-card header { margin-bottom: 1.75rem; }
.editor-access-card header img { width: min(100%, 15rem); height: auto; margin-bottom: 1.5rem; }
.editor-access-card header p { margin: 0 0 .35rem; color: #7dd3fc; font-size: .76rem; font-weight: 800; letter-spacing: .12em; }
.editor-access-card h1 { margin: 0; font-size: clamp(1.55rem, 5vw, 2.15rem); line-height: 1.08; letter-spacing: 0; }
.editor-access-card h2 { margin: 1rem 0 .5rem; font-size: 1.3rem; }
.editor-access-card form { display: grid; gap: .7rem; }
.editor-access-card label { color: #b8c9d4; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }

.editor-access-card input {
    width: 100%;
    min-height: 3rem;
    padding: .7rem .85rem;
    border: 1px solid #36576b;
    border-radius: .4rem;
    outline: none;
    background: #0b2536;
    color: #fff;
}

.editor-access-card input:focus { border-color: #38bdf8; box-shadow: 0 0 0 3px rgba(56, 189, 248, .15); }

.editor-access-card button {
    min-height: 3rem;
    margin-top: .35rem;
    border: 1px solid #7dd3fc;
    border-radius: .4rem;
    background: #38bdf8;
    color: #072033;
    font-weight: 800;
    cursor: pointer;
}

.editor-access-card button:disabled { opacity: .55; cursor: wait; }
.editor-access-card button.editor-access-secondary { margin-top: 0; border-color: #36576b; background: transparent; color: #d8e5ec; }
.editor-access-message { margin-bottom: 1rem; padding: .75rem; border-left: 3px solid #fb7185; background: rgba(127, 29, 29, .25); color: #fecdd3; }
.editor-access-message[data-kind="success"] { border-color: #34d399; background: rgba(6, 78, 59, .25); color: #a7f3d0; }
.editor-access-account { color: #7dd3fc; font-weight: 700; }
.editor-access-denied { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: rgba(251, 113, 133, .14); color: #fda4af; font-size: 1.25rem; }
.editor-access-card footer { margin-top: 1.6rem; color: #8da4b3; font-size: .78rem; line-height: 1.45; }

[hidden] { display: none !important; }

@media (max-width: 520px) {
    .editor-access-shell { padding: .75rem; }
    .editor-access-card { padding: 1.35rem; }
}
