:root {
    font-family: Arial, Helvetica, sans-serif;
    color: #152033;
    background: #eef2f6;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    min-height: 100vh;
}

button,
input {
    font: inherit;
}

.page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
}

.card {
    width: min(100%, 420px);
    padding: 34px;
    border: 1px solid rgba(20, 38, 63, 0.08);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(33, 54, 84, 0.16);
    text-align: center;
}

.icon {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    border-radius: 22px;
    font-size: 34px;
    font-weight: 800;
}

.icon.ready,
.icon.lock {
    background: #eaf1ff;
    color: #185cc5;
}

.icon.loading {
    background: #fff5d9;
    color: #9a6a00;
}

.icon.success {
    background: #e8f7ee;
    color: #16794b;
}

.icon.failed {
    background: #fff0f0;
    color: #a62323;
}

h1 {
    margin: 0;
    font-size: clamp(1.7rem, 5vw, 2.15rem);
    line-height: 1.12;
}

p {
    margin: 14px 0 26px;
    color: #5b6678;
    line-height: 1.5;
}

.privacy-note {
    margin: 16px 0 4px;
    font-size: 0.82rem;
    color: #7a8596;
}

form {
    display: grid;
    gap: 12px;
}

label {
    text-align: left;
    font-weight: 700;
}

input {
    width: 100%;
    min-height: 58px;
    border: 1px solid #bac5d5;
    border-radius: 14px;
    padding: 10px 16px;
    background: #ffffff;
    color: #152033;
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: 0.55rem;
    text-align: center;
    outline: none;
}

input:focus {
    border-color: #1768d7;
    box-shadow: 0 0 0 4px rgba(23, 104, 215, 0.14);
}

.primary-button {
    min-height: 58px;
    margin-top: 8px;
    border: 0;
    border-radius: 14px;
    padding: 14px 22px;
    background: linear-gradient(135deg, #1768d7, #0d4da5);
    color: #ffffff;
    font-weight: 800;
    font-size: 1.08rem;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(23, 104, 215, 0.25);
}

.primary-button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.logout-form {
    margin-top: 12px;
}

.text-button {
    border: 0;
    background: transparent;
    color: #667285;
    text-decoration: underline;
    cursor: pointer;
}

.error {
    margin: -8px 0 18px;
    border: 1px solid #efb2b2;
    border-radius: 12px;
    padding: 12px 14px;
    background: #fff0f0;
    color: #9b2020;
    line-height: 1.45;
    text-align: left;
}

.hidden {
    display: none;
}

@media (max-width: 480px) {
    .page {
        padding: 14px;
    }

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