body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    font-family: "Roboto Condensed";
}

input,
button {
    font-family: "Roboto Condensed";
    font-size: 16px;
}

@font-face {
    font-family: 'Roboto Condensed';
    font-style: normal;
    font-weight: 400;
    src: url("../fonts/roboto.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    display: none;
}

#glow-canvas {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
}

.loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.loader img {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
}

/* Brand testuale GDO ML (sostituisce il logo immagine). */
.brand {
    font-weight: 700;
    font-size: 34px;
    letter-spacing: 2px;
    color: #0077b6;
    margin-bottom: 20px;
    user-select: none;
}

.brand-loader {
    color: #fff;
    font-size: 40px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.loader .spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #0077b6;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.login-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.85);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: none;
}

.login-box input,
.login-box button {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    box-sizing: border-box;
}

.login-box button {
    background-color: #0077b6;
    color: white;
    border: none;
    font-weight: bold;
    cursor: pointer;
}

.login-box button:hover {
    background-color: #023e8a;
}

#twofa-box {
    background: rgba(255, 255, 255, 0.95) !important;
}

.code-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.code-input {
    width: 45px;
    height: 45px;
    border: 2px solid #0077b6;
    border-radius: 50%;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #0077b6;
    outline: none;
    transition: all 0.3s;
    padding: 0;
}

.code-input:focus {
    border-color: #023e8a;
    box-shadow: 0 0 10px rgba(0, 119, 182, 0.5);
    transform: scale(1.1);
}

.code-input:valid {
    background-color: rgba(0, 119, 182, 0.1);
}

.error-message {
    background-color: rgba(220, 53, 69, 0.9);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    margin: 10px 0;
    font-size: 14px;
    font-weight: bold;
    display: none;
    animation: shake 0.5s;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}