:root {
    --primary-green: #2E7D32;
    --hover-green: #1B5E20;
    --bg-earth: #f0f7f4;
    --text-dark: #333333;
    --border-light: #e0e0e0;
}

body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: var(--bg-earth);
    background-image: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    padding: 20px;
}

.login-container {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(46, 125, 50, 0.15);
    width: 100%;
    max-width: 380px;
    text-align: center;
    border-top: 6px solid var(--primary-green);
}

.marfe-logo {
    max-width: 140px;
    height: auto;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.title-text {
    color: var(--primary-green);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 30px 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

/* --- Estilos del Input y el Ojo --- */
.password-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

input {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s;
    background-color: #fff;
    color: var(--text-dark);
}

/* Espacio para el ojo en el input de password */
.password-wrapper input {
    padding-right: 50px;
}

#email {
    margin-bottom: 20px;
}

input:focus {
    outline: none;
    border-color: var(--primary-green);
    background-color: #f1f8e9;
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.05);
}

/* Botón del Ojo */
.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: color 0.3s, transform 0.2s;
}

    .toggle-password:hover {
        color: var(--primary-green);
        transform: translateY(-50%) scale(1.1);
    }

    /* Importante para los nuevos iconos outline */
    .toggle-password svg {
        width: 22px;
        height: 22px;
        stroke-width: 2px;
    }

/* --- Botones --- */
.btn-main {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-green);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: transform 0.2s, background-color 0.3s;
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.3);
    margin-top: 10px;
}

    .btn-main:hover {
        background-color: var(--hover-green);
        transform: translateY(-2px);
    }

    .btn-main:disabled {
        background-color: #ccc;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

/* Icono dentro del botón ingresar */
.btn-icon-svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.separator {
    margin: 25px 0;
    color: #999;
    font-size: 0.9em;
    display: flex;
    align-items: center;
}

    .separator::before, .separator::after {
        content: '';
        flex: 1;
        border-bottom: 1px solid #ddd;
    }

    .separator::before {
        margin-right: 15px;
    }

    .separator::after {
        margin-left: 15px;
    }

.google-btn {
    background-color: white;
    color: var(--text-dark);
    border: 2px solid var(--border-light);
    box-shadow: none;
    font-size: 1rem;
    padding: 12px;
    margin-bottom: 20px;
    transition: all 0.2s;
}

    .google-btn:hover {
        background-color: #f9f9f9;
        border-color: #ccc;
        transform: translateY(-2px);
    }

.google-icon-svg {
    width: 22px;
    height: 22px;
}

.register-link {
    display: block;
    margin-top: 20px;
    color: var(--primary-green);
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 600;
}

    .register-link:hover {
        text-decoration: underline;
    }

/* Estilo para el mensaje de error en el login */
#error-msg {
    color: #d32f2f; /* Rojo alerta */
    font-size: 0.9rem; /* Un poco más pequeño que el texto normal */
    text-align: center; /* Centrado */
    margin-top: 5px; /* Espacio arriba */
    margin-bottom: 15px; /* Espacio abajo para separar del botón */
    font-weight: 500;
    padding: 5px;
    border-radius: 4px;
    background-color: rgba(211, 47, 47, 0.1); /* Fondo rojo muy suave opcional */
}