.login-page {
    overflow: hidden;
}

.login-shell {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding:
        max(24px, env(safe-area-inset-top))
        max(24px, env(safe-area-inset-right))
        max(24px, env(safe-area-inset-bottom))
        max(24px, env(safe-area-inset-left));
    background:
        radial-gradient(circle at 50% 42%, rgba(235, 239, 245, 0.72), transparent 38%),
        #ffffff;
}

.login-panel {
    width: min(100%, 420px);
    transform: translateY(-2vh);
}

.login-title {
    margin: 0 0 30px;
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 0.025em;
}

.login-form {
    display: grid;
    gap: 16px;
}

.passcode-input {
    width: 100%;
    height: 58px;
    padding: 0 18px;
    border: 1px solid #bfc5cd;
    border-radius: 12px;
    outline: none;
    background: #ffffff;
    color: #17191c;
    font-size: 23px;
    line-height: 1;
    text-align: center;
    letter-spacing: 0.12em;
    caret-color: #17191c;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transition:
        border-color 120ms ease,
        box-shadow 120ms ease;
}

.passcode-input:focus {
    border-color: #6a7483;
    box-shadow: 0 0 0 4px rgba(80, 94, 112, 0.11);
}

.login-button {
    width: 100%;
    height: 56px;
    border: 0;
    border-radius: 12px;
    background: #20252c;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    transition:
        transform 90ms ease,
        background 120ms ease;
}

.login-button:hover {
    background: #11151a;
}

.login-button:active {
    transform: scale(0.992);
}

.login-error {
    min-height: 24px;
    margin: 2px 0 0;
    text-align: center;
    color: #b42318;
    font-size: 14px;
    line-height: 1.5;
}

.login-error.is-hidden {
    visibility: hidden;
}

@media (max-width: 899px) {
    .login-shell {
        padding-left: 22px;
        padding-right: 22px;
    }

    .login-panel {
        width: min(100%, 560px);
        transform: translateY(-1vh);
    }

    .login-title {
        margin-bottom: 38px;
        font-size: clamp(34px, 8vw, 48px);
    }

    .login-form {
        gap: 22px;
    }

    .passcode-input {
        height: 82px;
        padding: 0 24px;
        border-width: 2px;
        border-radius: 18px;
        font-size: 34px;
    }

    .login-button {
        height: 78px;
        border-radius: 18px;
        font-size: 25px;
    }

    .login-error {
        min-height: 30px;
        font-size: 18px;
    }
}

@media (max-width: 420px) {
    .login-panel {
        width: 100%;
    }

    .passcode-input {
        height: 88px;
        font-size: 36px;
    }

    .login-button {
        height: 84px;
        font-size: 26px;
    }
}
