﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #2e692a; /* Fondo verde oscuro */
    font-family: Arial, Helvetica, sans-serif;
}

/* Header */
nav .menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    flex-wrap: wrap; /* Ajusta el menú en pantallas pequeñas */
}

    nav .menu li a {
        text-decoration: none;
        color: white;
        font-weight: bold;
    }

        nav .menu li a:hover {
            text-decoration: underline;
        }

/* Formularios */
form {
    background: #FFF;
    width: 90%; /* Ajuste para pantallas pequeñas */
    max-width: 400px; /* Ancho máximo para desktop */
    margin: 2rem auto;
    padding: 2rem;
    box-shadow: 7px 13px 37px rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    color: #2e692a;
}

h1 {
    text-align: center;
    color: #2e692a;
    margin-bottom: 1.5rem;
}

label {
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

input[type="email"], input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 2px solid #2e692a;
    border-radius: 5px;
    margin-bottom: 1rem;
    font-size: 1rem;
    outline: none;
}

input[type="submit"] {
    padding: 10px;
    background: #2e692a;
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    border-radius: 5px;
    transition: background 0.3s;
}

    input[type="submit"]:hover {
        background: #255b24;
    }

/* Estilo para los mensajes de error o éxito */
p {
    text-align: center;
    font-weight: bold;
}

    p.green {
        color: green;
    }

    p.white {
        color: whitesmoke;
    }

    p.red {
        color: red;
    }

/* Ajuste para pantallas medianas */
@media (max-width: 768px) {
    form {
        width: 80%;
        padding: 1.5rem;
    }
}

/* Ajuste para pantallas pequeñas */
@media (max-width: 480px) {
    form {
        width: 90%;
        padding: 1rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    label {
        font-size: 0.9rem;
    }

    input[type="submit"] {
        font-size: 0.9rem;
    }
}
