* {
    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;
    width: 100%;
    padding: 10px;
}

.box {
    width: 100%;
    max-width: 380px;
    border: 2px solid #625d5d;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    background: rgba(0, 0, 0, 0.6);
    padding: 23px 15px;
}

h2 {
    font-size: 2em;
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
}

.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: #f51a1a;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 600;
    color: #fff;
    transition: all 0.3s ease;
}

button:hover {
    background-color: #da1010b9;
    box-shadow: 0 4px 10px rgba(46, 46, 46, 0.2);
    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;
}

.logo-container {
    text-align: center;
    margin-bottom: 10px;
}

.logo {
    max-width: 170px;
    height: 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 #ff1e1e;
    border-radius: 14px;
    padding: 10px;
    z-index: 9999;
    display: none;
    box-shadow: 0 0 20px rgba(255, 0, 0, 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: 450px) {
    .box {
        padding: 20px;
        border-radius: 15px;
    }

    .logo {
        width: 140px;
    }

    button {
        font-size: 1em;
    }

    h2 {
        font-size: 1.6em;
    }

    .flashes li {
        font-size: 0.9em;
    }

    #tech-notify img {
        width: 90vw;
    }
}
