/* ===================== RESET ===================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #2d5016, #218838);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
/* ===================== img ===================== */
.logo {
    display: block;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 120px
}

/* ===================== CONTAINER ===================== */
.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

/* ===================== BOX LOGIN ===================== */
.login-box {
    background: #fff;
    padding: 35px 25px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.login-box h2 {
    color: #2d5016;
    margin-bottom: 25px;
    font-size: 28px;
}

/* ===================== INPUTS ===================== */
.input-group {
    margin-bottom: 20px;
    text-align: left;
    position: relative; /* necessário para ícone de senha */
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: bold;
    font-size: 14px;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    transition: 0.3s;
}

.input-group input:focus {
    border-color: #28a745;
    outline: none;
    box-shadow: 0 0 5px rgba(40, 167, 69, 0.5);
}

/* ===================== BOTÃO VER SENHA ===================== */
.toggle-senha {
    position: absolute;
    top: 65%;
    right: 12px;
    transform: translateY(-50%);
    cursor: pointer;
    width: 20px;   /* ajuste o tamanho da imagem */
    height: 20px;
}


.toggle-senha:hover {
    color: #28a745;
}

/* ===================== BOTÃO LOGIN ===================== */
button[type="submit"] {
    width: 100%;
    padding: 14px;
    background: #28a745;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

button[type="submit"]:hover {
    background: #218838;
}

/* ===================== BOTÃO SAIR ===================== */
.logout-group {
    margin-top: 15px;
    text-align: center;
}

.btn-logout {
    display: inline-block;
    text-align: center;
    background: #dc3545;
    color: white;
    font-weight: bold;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-logout:hover {
    background: #c82333;
}

/* ===================== RESPONSIVO ===================== */
@media(max-width: 480px) {
    .login-box {
        padding: 30px 20px;
    }

    .login-box h2 {
        font-size: 24px;
    }

    button[type="submit"],
    .btn-logout {
        font-size: 14px;
        padding: 12px;
    }
}
