* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
    margin: 0;
    height: 100%;
    background: #0e1116;
    color: #e6e9ef;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    user-select: none;
}

.login {
    max-width: 420px;
    margin: 0 auto;
    padding: 32px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-height: 100%;
    justify-content: center;
}

h1 { margin: 0; font-size: 28px; font-weight: 600; }
.hint { margin: 0; opacity: 0.75; }
.error { color: #ff6b6b; margin: 0; font-weight: 600; }

.dots { display: flex; gap: 16px; justify-content: center; }
.dot {
    width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid #4a5365; background: transparent;
}
.dot.filled { background: #6ee7b7; border-color: #6ee7b7; }

.keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.k {
    height: 88px;
    font-size: 32px;
    font-weight: 600;
    background: #1c2230;
    border: 1px solid #2c3445;
    color: #e6e9ef;
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.05s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
}
.k:active { background: #2a3142; }
.k-digit { line-height: 1; }
/* Empty on 1 and 0 — the reserved line keeps every digit on the same baseline. */
.k-letters {
    /* Fixed, not min-height: the empty line on 1 and 0 must measure the same as a filled one. */
    height: 13px;
    line-height: 13px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    /* letter-spacing pads the right edge too — pull it back so the group stays centred. */
    text-indent: 0.14em;
    color: #94a3b8;
}
.k-aux { background: #232936; }
.k-ok { background: #155f43; border-color: #1c7d57; }
.k-ok:active { background: #1c7d57; }
