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

* {
    box-sizing: border-box;
}

body {
    display: grid;
    min-height: 100vh;
    margin: 0;
    padding: 24px;
    place-items: center;
    background:
        radial-gradient(circle at 20% 10%, #173568 0, transparent 36%),
        radial-gradient(circle at 90% 90%, #164e55 0, transparent 34%),
        #07111f;
}

.card {
    width: min(100%, 520px);
    padding: 36px;
    border: 1px solid rgb(255 255 255 / 10%);
    border-radius: 24px;
    background: rgb(10 23 40 / 92%);
    box-shadow: 0 28px 80px rgb(0 0 0 / 45%);
    text-align: center;
}

.logo {
    display: grid;
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    place-items: center;
    border-radius: 17px;
    background: linear-gradient(135deg, #4f8cff, #22c7a9);
    box-shadow: 0 12px 32px rgb(34 199 169 / 25%);
    color: #fff;
    font-size: 27px;
    font-weight: 800;
}

.eyebrow {
    margin: 0 0 8px;
    color: #75e5cf;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1,
h2 {
    margin: 0;
}

h1 {
    font-size: clamp(26px, 7vw, 36px);
}

h2 {
    font-size: 25px;
}

.state {
    margin-top: 28px;
}

.hidden {
    display: none;
}

.lead,
.notice,
.state p {
    color: #b8c6da;
    line-height: 1.55;
}

.spinner {
    width: 36px;
    height: 36px;
    margin: 0 auto 16px;
    border: 3px solid rgb(255 255 255 / 12%);
    border-top-color: #65a0ff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.actions {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

button,
a {
    min-height: 48px;
    padding: 13px 18px;
    border: 0;
    border-radius: 13px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.primary {
    background: linear-gradient(135deg, #4f8cff, #3e71e8);
    color: #fff;
}

.secondary {
    border: 1px solid rgb(255 255 255 / 12%);
    background: #14243a;
    color: #e9f1ff;
}

button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.qr-panel {
    margin-top: 24px;
    padding: 20px;
    border-radius: 18px;
    background: #fff;
    color: #1a2433;
}

.qr-panel img {
    display: block;
    width: min(100%, 310px);
    margin: auto;
}

.qr-panel p {
    color: #47566b;
}

.notice {
    margin: 20px 0 0;
    font-size: 13px;
}

.success,
.error-icon {
    display: grid;
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    place-items: center;
    border-radius: 50%;
    font-size: 26px;
    font-weight: 800;
}

.success {
    background: rgb(34 199 169 / 18%);
    color: #55e0c5;
}

.error-icon {
    background: rgb(255 104 120 / 16%);
    color: #ff7887;
}

@media (max-width: 520px) {
    body {
        padding: 12px;
    }

    .card {
        padding: 28px 20px;
        border-radius: 20px;
    }
}
