/* Reset y base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: Arial, sans-serif;
    background: url('../media/fondo-login.jpg') no-repeat center center fixed;
    background-size: cover;
    padding: 50px 15px; /* padding horizontal reducido para evitar desbordes */
}

/* Título */
h2 {
    text-align: center;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: #4a4a4a;
    margin-bottom: 20px;
}

/* Contenedor principal */
.container {
    max-width: 420px;
    width: 100%;
    margin: auto;
    background: rgba(221, 255, 220, 0.85);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Campos de entrada */
input[type="email"], input[type="password"], input[type="text"] {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    margin-bottom: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

input:focus {
    border-color: #ce4b00;
    outline: none;
}

/* Checkbox de mostrar contraseña */
input[type="checkbox"] {
    margin-right: 6px;
}

.show-password {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    font-size: 14px;
    color: #333;
}

/* Botones */
.btn-group {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn-group button {
    flex: 1 1 40%;
    background-color: #e76d1b;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-group button:hover {
    background-color: #c44e00;
}

/* Enlaces */
.toggle, .register {
    text-align: center;
    margin-top: 20px;
}

.toggle a, .btn-register {
    color: #6d6d6d;
    text-decoration: none;
    font-weight: bold;
}

.toggle a:hover, .btn-register:hover {
    color: #e76d1b;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }

    .btn-group {
        flex-direction: column;
        gap: 15px;
    }

    .btn-group button {
        width: 100%;
    }

    .container {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 1.2rem;
    }

    input {
        font-size: 13px;
    }

    .container {
        padding: 15px;
    }
}
