:root {
    /* Custom property to adjust for mobile viewport height */
    --vh: 1vh;
}

body {
    background-color: #040404;
    margin: 0;
    padding: 0;
    min-height: calc(var(--vh, 1vh) * 100);
    font-family: "TT Interphases Pro";
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login {
    color: white;
    background-color: #1e90ff;
    border: none;
    font-weight: 500;
    font-size: 1.1em;
    display: flex;
    padding: 10px 20px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease-out, background-color 0.3s ease-out;
    width: 232px;
    height: 50px;
}

.icon {
    margin-right: 5px;
    max-height: 30px;
}

.logo {
    max-height: 30px;
    margin-bottom: 5px;
    opacity: 0.9;
}

.container {
    border-radius: 20px;
    background-color: #151515;
    padding: 40px;
    border-style: dashed;
    border-width: 2px;
    border-color: #313131;
    transition: border-color 0.2s ease, border-style 0.2s ease;
    pointer-events: none;
}

.container:hover {
    border-color: #1e90ff;
}

.container .login {
    pointer-events: auto;
}

.container .login:hover {
    transform: scale(1.02);
}

.no-passkey {
    font-size: 0.9em;
    font-weight: 600;
    text-decoration: underline;
    display: flex;
    justify-content: flex-end;
    margin-top: 6px;
    color: #ffffff66;
    pointer-events: auto;
}

.loading {
    width: 20px;
    height: 20px;
    border: 3px solid #56abff;
    border-radius: 50%;
    border-top: 3px solid #c2e0ff;
    animation: spin 2s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@media only screen and (max-width: 1080px) {
    html body {
        touch-action: none;
    }

    body {
        min-height: calc(var(--vh, 1vh) * 100);
    }

    .container:hover {
        border-color: #313131; /* Keep it original on hover */
    }
}