/* The terminal's own screens: pairing and the lock screen (issue #622). The terminal's pages bring
   their own scoped styles; this file must not live under /css, which the terminal host serves from the
   server's shared stylesheets. */

html, body {
    height: 100%;
    background: #f9f9f9;
}

.terminal-gate-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.terminal-front {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1rem;
    text-align: center;
    outline: none;
}

.terminal-front-logo {
    height: 128px;
    margin-bottom: 1.5rem;
}

.terminal-front-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.terminal-front-hint {
    font-size: 1.15rem;
    color: #575445;
    margin-bottom: 0.5rem;
}

.terminal-front-uri {
    font-size: 1.25rem;
    font-weight: 600;
    color: #b43c2f;
    margin-bottom: 1rem;
    word-break: break-all;
}

.terminal-front-code {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 0.4rem;
    padding: 1rem 2rem;
    margin: 1rem 0;
    border-radius: 12px;
    background: #fff;
    border: 2px solid #e6b939;
    font-family: "Roboto Mono", Consolas, monospace;
}

.terminal-front-small {
    font-size: 0.9rem;
    color: #87a2a0;
}

.terminal-front-button {
    margin-top: 1rem;
    min-width: 200px;
}

.terminal-pin-dots {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0 0.5rem;
}

.terminal-pin-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #575445;
    background: transparent;
    transition: background 0.1s;
}

.terminal-pin-dot.filled {
    background: #575445;
}

.terminal-pin-shake {
    animation: terminal-pin-shake 0.35s;
}

@keyframes terminal-pin-shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-10px); }
    40%, 80% { transform: translateX(10px); }
}

.terminal-pin-message {
    min-height: 1.75rem;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.terminal-pin-message.error {
    color: #b43c2f;
}

.terminal-pin-pad {
    display: grid;
    grid-template-columns: repeat(3, 96px);
    gap: 1rem;
}

.terminal-pin-key {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 1px solid #d9d9d9;
    background: #fff;
    font-size: 2rem;
    font-weight: 500;
    color: #27173e;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}

.terminal-pin-key:active:not(:disabled) {
    background: #e6b939;
}

.terminal-pin-key:disabled {
    opacity: 0.4;
}

.terminal-pin-key-secondary {
    font-size: 1.75rem;
    background: transparent;
    border-color: transparent;
}

/* ── Controls every terminal screen shares, so Material, Inventar and Kasse look and feel alike ── */

/* The scan box at the top of a screen. */
.terminal-input.form-control {
    height: 4rem;
    font-size: 1.5rem;
    text-align: center;
}

/* Taking a line out of a basket: the same square, red bin on every screen, at the row height. */
.btn.terminal-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 3.25rem;
    height: 3.25rem;
    padding: 0;
}

/* MobileKit gives every button icon a right margin to keep it off a label; there is none here. */
.btn.terminal-remove ion-icon {
    margin: 0;
    font-size: 1.5rem;
}
