/* Dominio de documentos de Alejandría: acceso con contraseña y verificación de integridad. Pensado primero para móvil. */
:root {
    --ink: #2b2f3a;
    --muted: #6b7180;
    --line: #e5e7ee;
    --ground: #f4f5f8;
    --paper: #ffffff;
    --accent: #f7931e;
    --accent-dark: #d97a0b;
    --danger: #d9364a;
    --ok: #1b9e4b;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--ground);
    color: var(--ink);
    font-family: Poppins, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}
.sd-header { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--paper); border-bottom: 1px solid var(--line); }
.sd-header img { height: 34px; width: auto; display: block; }
.sd-brand { font-size: 17px; font-weight: 500; white-space: nowrap; }
.sd-brand b { font-weight: 700; color: var(--accent-dark); }
.sd-main { flex: 1; width: 100%; max-width: 520px; margin: 0 auto; padding: 20px 16px 28px 16px; display: flex; flex-direction: column; gap: 14px; }
.sd-card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 22px 18px; }
.sd-card h1 { margin: 0 0 6px 0; font-size: 20px; font-weight: 700; line-height: 1.25; }
.sd-card p { margin: 0; color: var(--muted); }
.sd-card p + p { margin-top: 8px; }
.sd-form { margin: 18px 0 0 0; display: flex; flex-direction: column; gap: 12px; }
.sd-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.sd-label { font-size: 13px; font-weight: 600; color: var(--ink); }
.sd-field { position: relative; }
.sd-input {
    width: 100%; min-height: 52px; padding: 0 64px 0 14px; border: 1px solid #cfd3dd; border-radius: 10px; background: var(--paper);
    color: var(--ink); font: inherit; font-size: 18px; letter-spacing: .08em; font-family: "Courier New", monospace;
}
.sd-input:focus-visible, .sd-btn:focus-visible, .sd-drop:focus-within, .sd-toggle:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 2px; }
.sd-toggle { position: absolute; right: 6px; top: 6px; height: 40px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.sd-btn { min-height: 50px; padding: 0 18px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font: inherit; font-size: 15px; font-weight: 700; letter-spacing: .02em; cursor: pointer; }
.sd-btn:hover { background: var(--accent-dark); }
.sd-btn[disabled] { background: #d5d8e0; color: #7a7f8c; cursor: not-allowed; }
.sd-msg { margin: 0; padding: 10px 12px; border-radius: 10px; font-size: 13px; background: #fdeef0; border: 1px solid #f5c0c7; color: #8d1f2d; }
.sd-msg.is-ok { background: #eaf7ef; border-color: #b9e3c8; color: #14663a; }
.sd-msg[hidden] { display: none; }
.sd-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 16px; border: 2px dashed #cfd3dd; border-radius: 12px; background: #fafbfc; text-align: center; cursor: pointer; }
.sd-drop.is-over { border-color: var(--accent); background: #fff6eb; }
.sd-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.sd-drop strong { font-size: 15px; }
.sd-drop span { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.sd-list { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.sd-list li + li { margin-top: 4px; }
.sd-foot { text-align: center; font-size: 12px; color: var(--muted); }
.sd-foot a { color: var(--accent-dark); }
.grecaptcha-badge { visibility: hidden; }
@media (min-width: 768px) {
    body { font-size: 16px; }
    .sd-header { padding: 12px 28px; }
    .sd-header img { height: 40px; }
    .sd-brand { font-size: 19px; }
    .sd-main { padding-top: 48px; }
    .sd-card { padding: 28px 26px; }
}
