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

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

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

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

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

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

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

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

.station-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;
}

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

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

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

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

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

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

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

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

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

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

.station-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;
}

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

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

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