/* Configurações Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Borda Neon */
.gradient-border-container {
    position: fixed;
    top: 50px;
    left: 50px;
    right: 50px;
    bottom: 50px;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    z-index: 5;
    background-color: #ffffff;
}

.gradient-border-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(#00BFFF 0deg, #00BFFF 90deg, #ffffff 120deg, #00BFFF 180deg, #00BFFF 270deg, #ffffff 300deg, #00BFFF 360deg);
    z-index: -1;
    animation: rotate-gradient 4s linear infinite;
    filter: blur(5px);
}

.gradient-border-container::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: #ffffff;
    border-radius: 8px;
    z-index: -1;
}

@keyframes rotate-gradient {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Imagem do Logo */
.fullscreen-bg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background-image: url('imagens/logo.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    z-index: 10;
    pointer-events: none;
}

/* Container de Login */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 20;
    position: relative;
    margin-top: 220px;
}

.login-input {
    padding: 12px;
    width: 260px;
    border: 2px solid #00BFFF;
    border-radius: 8px;
    outline: none;
    text-align: center;
    font-size: 16px;
    background-color: white;
}

.login-button {
    padding: 12px;
    width: 260px;
    background-color: #00BFFF;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

/* Caixa de Erro - CORRIGIDA para não empurrar os botões */
.error-box {
    position: absolute; /* Não ocupa espaço no fluxo do layout */
    top: -60px; /* Fica 50px acima do input de PIN */
    color: #00BFFF;
    font-weight: bold;
    font-size: 16px;
    padding: 10px;
    border: 2px solid #00BFFF;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.95);
    text-align: center;
    width: 260px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Ajustes Desktop */
@media (min-width: 1024px) {
    .fullscreen-bg {
        width: 55%;
        height: 55%;
        top: 40%;
    }
    .login-container {
        margin-top: 480px !important;
    }
}

/* Ajustes Mobile */
@media (max-width: 768px) {
    .gradient-border-container {
        top: 10px;
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
    .fullscreen-bg {
        width: 60%;
        height: 60%;
        top: 25%;
    }
    .login-container {
        margin-top: 180px;
    }
}
