@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&family=Montserrat:wght@400;500;600;700&display=swap');

body {
    font-family: 'Quicksand', sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #1a2f1f; 
    /* Aqui va el fondo  */
    background-image: url('../img/css/tabiqueNaranja.jpg'); background-size: cover; 
    background-position: center;
    background-attachment: fixed; 
    background-repeat: no-repeat;
}

.login-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.login-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 450px; 
}

/* Logo */
.login-logo img {
    width: 80px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.login-container {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 20px; 
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    box-sizing: border-box;
}

h2 {
    color: #1a2f1f;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 1.8rem;
}

/* Inputs */
.input-group {
    margin-bottom: 18px;
}

input {
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-radius: 12px;
    background-color: #eafde8;
    color: #1a2f1f;
    outline: none;
    box-sizing: border-box;
    font-size: 1rem;
    font-family: 'Quicksand', sans-serif;
    transition: all 0.2s ease;
    margin-top: 10px;
}

input:focus {
    background-color: #dff5dc;
    box-shadow: 0 0 0 3px rgba(107, 255, 136, 0.4);
}

.login-form button, .login-container button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 40px;
    background-color: #6aff6a;
    color: #1a2f1f;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    margin-bottom: 10px;
    font-family: 'Quicksand', sans-serif;
}

.login-form button:hover,
.login-container button:hover {
    background-color: #50e050;
    transform: scale(1.02);
}

/* Enlace para recolectores */
.nav-link-sesion {
    display: inline-block;
    margin-top: 20px;
    color: #1a2f1f;
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed #6aff6a;
    transition: all 0.2s;
}

.nav-link-sesion:hover {
    color: #0b6b39;
    border-bottom-color: #0b6b39;
}

/* Mensajes de estado */
.message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    display: none;
    font-size: 0.9rem;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.loading {
    text-align: center;
    margin-top: 15px;
    color: #1a2f1f;
    display: none;
    font-weight: 500;
}

.loading.active {
    display: block;
}

/* responsiv */
@media (max-width: 550px) {
    .login-wrapper {
        padding: 16px;
    }

    .login-container {
        padding: 30px 20px;
        border-radius: 16px;
    }

    h2 {
        font-size: 1.5rem;
        margin-bottom: 16px;
    }

    input {
        padding: 12px 14px;
        font-size: 0.95rem;
    }

    button {
        padding: 12px;
        font-size: 1rem;
    }

    .login-logo img {
        width: 65px;
    }

    .nav-link-sesion {
        font-size: 0.8rem;
        margin-top: 16px;
    }
}


@media (max-height: 600px) {
    .login-wrapper {
        align-items: flex-start;
        padding-top: 30px;
        padding-bottom: 30px;
    }
}