/* Seu Código CSS Atualizado */
* {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    box-sizing: border-box;
}

body {
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: url("/static/res/fundo.png") no-repeat center center;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    width: 100%;
    padding: 10px;
}

/* Estilização do nome "INDICADOR VISION" no canto esquerdo (somente desktop) */
.logo-text {
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 3em;
    font-weight: 300;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
    z-index: 10;
    line-height: 1.1;
}

.vision-color {
    color: #00ffc8;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 0 10px #00ffc880;
}

.box {
    width: 100%;
    max-width: 380px;
    border: 2px solid #625d5d;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.98); 
    
    /* RESTAURADO O PADDING-TOP E ADICIONADO A BORDA NEON */
    padding: 23px 15px; 
    box-shadow: 0 0 15px rgba(0, 255, 200, 0.5); 
    
    position: relative;
    z-index: 20;
    margin: auto;
}

/* LOGO no topo do box */
.logo-container {
    text-align: center;
    /* RESTAURADO MARGIN-BOTTOM */
    margin-bottom: 8px; 
}

.logo {
    max-width: 220px;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 5px rgba(0, 255, 200, 0.7));
}

h2 {
    font-size: 2em;
    color: #fff;
    text-align: center;
    /* RESTAURADO MARGIN-TOP */
    margin-top: 5px; 
    
    margin-bottom: 18px;
}

.inputbox {
    position: relative;
    margin-top: 15px;
    width: 100%;
    border-bottom: 2px solid #fff;
}

.inputbox label {
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    color: #fff;
    font-size: 1em;
    pointer-events: none;
    transition: 0.3s ease;
}

.inputbox input {
    width: 100%;
    height: 50px;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1em;
    padding: 0 35px 0 5px;
    color: white;
}

.inputbox input:focus ~ label,
.inputbox input:valid ~ label {
    top: -5px;
    font-size: 0.85em;
}

.inputbox ion-icon {
    position: absolute;
    right: 8px;
    color: #fff;
    font-size: 1.2em;
    top: 20px;
}

button {
    width: 100%;
    height: 40px;
    margin-top: 20px;
    border-radius: 40px;
    background-color: #00ffc8;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 600;
    color: #000;
    transition: all 0.3s ease;
}

button:hover {
    background-color: #00c8a0;
    box-shadow: 0 4px 15px rgba(0, 255, 200, 0.4);
    transform: scale(1.05);
}

.forget {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.85em;
    color: #fff;
    width: 100%;
}

.forget label {
    display: flex;
    align-items: center;
}

.forget label input[type="checkbox"] {
    margin-right: 6px;
}

.flashes {
    list-style: none;
    padding: 0;
    margin-top: 15px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 8px;
}

.flashes li {
    padding: 12px 20px;
    border-radius: 8px;
    text-align: center;
    width: 100%;
    max-width: 350px;
    font-size: 0.95em;
    font-weight: 500;
    box-sizing: border-box;
    animation: fadeIn 0.4s ease-in-out;
}

.success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.danger, .error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f59ea7;
}

.info {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 2px 20px;
    font-size: 0.9em;
    border-radius: 3px;
    width: auto;
    display: inline-block;
    margin: 0 auto;
}

/* === Notificação com imagem estilizada === */
#tech-notify {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    border: 3px solid #00ffc8;
    border-radius: 14px;
    padding: 10px;
    z-index: 9999;
    display: none; /* ESSENCIAL PARA ESTAR OCULTO POR PADRÃO */
    box-shadow: 0 0 20px rgba(0, 255, 200, 0.7); 
    animation: fadeInNotify 0.4s ease-in-out;
}

#tech-notify img {
    width: 340px;
    height: auto;
    border-radius: 10px;
}

#tech-notify .close-btn {
    position: absolute;
    top: 6px;
    right: 12px;
    font-size: 20px;
    color: #fff;
    cursor: pointer;
}

@keyframes fadeInNotify {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Responsividade */
@media (max-width: 900px) {
    .logo-text {
        position: static;
        text-align: center;
        margin-bottom: 20px;
        transform: none;
        font-size: 2em;
        padding-top: 20px;
        margin-bottom: 30px;
    }

    .box {
        padding: 20px;
        border-radius: 15px;
        margin: 20px 10px;
    }

    .logo {
        max-width: 210px;
    }

    button {
        font-size: 1em;
    }

    h2 {
        font-size: 1.6em;
    }

    .flashes li {
        font-size: 0.9em;
    }

    #tech-notify img {
        width: 90vw;
    }
}
