body {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)),
    url('arboles.png');
    background-size: contain;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    padding: 20px;
    box-sizing: border-box;
    margin: 0;
}

/* Overlay para mejorar legibilidad */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 78, 59, 0.15);
    z-index: -1;
}

.login-container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3rem 2.5rem;
    border-radius: 16px;
    box-shadow:
            0 25px 50px rgba(0, 0, 0, 0.15),
            0 0 0 1px rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 420px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

/* Efecto de cristal en el contenedor */
.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    color: #064e3b;
    font-size: 2.25rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

/* Inputs con diseño moderno */
input {
    width: 100%;
    padding: 16px 20px;
    margin-bottom: 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    background-color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    font-weight: 400;
}

input:focus {
    outline: none;
    border-color: #059669;
    box-shadow:
            0 0 0 4px rgba(5, 150, 105, 0.1),
            0 4px 12px rgba(5, 150, 105, 0.15);
    background-color: #ffffff;
    transform: translateY(-1px);
}

input::placeholder {
    color: #9ca3af;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

/* Botón principal con estilo BosquesBiodiversos */
button {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #064e3b 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 2rem;
    letter-spacing: 0.025em;
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

button:hover::before {
    left: 100%;
}

button:hover {
    background: linear-gradient(135deg, #047857 0%, #10b981 100%);
    transform: translateY(-2px);
    box-shadow:
            0 10px 25px rgba(5, 150, 105, 0.3),
            0 4px 12px rgba(0, 0, 0, 0.15);
}

button:active {
    transform: translateY(0);
}

/* Mensajes de error con mejor diseño */
.error {
    color: #dc2626;
    font-size: 14px;
    margin-bottom: 1.5rem;
    text-align: center;
    background: rgba(254, 242, 242, 0.95);
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid rgba(252, 165, 165, 0.5);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* Enlaces con estilo mejorado */
.registro-fila {
    font-size: 15px;
    text-align: center;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
}

.registro-fila a {
    color: #059669;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-block;
}

.registro-fila a:hover {
    color: #047857;
    background-color: rgba(5, 150, 105, 0.1);
    transform: translateY(-1px);
}

.forgot-password {
    text-align: center;
    margin-top: 1rem;
}

.forgot-password a {
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-block;
}

.forgot-password a:hover {
    color: #374151;
    background-color: rgba(107, 114, 128, 0.1);
}

/* Mensajes de éxito */
.success {
    background: rgba(240, 253, 244, 0.95);
    color: #065f46;
    border: 1px solid rgba(187, 247, 208, 0.5);
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.login-container p {
    text-align: center;
    color: #6b7280;
    margin-bottom: 1.5rem;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

.login-container p strong {
    color: #374151;
    font-weight: 600;
}

/* Campo de contraseña con icono mejorado */
.campo-password {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.campo-password input {
    width: 100%;
    padding-right: 3.5rem;
    margin-bottom: 0;
}

.toggle-password {
    position: absolute;
    right: 16px;
    color: #6b7280;
    opacity: 0.7;
    cursor: pointer;
    font-size: 18px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    padding: 4px;
    border-radius: 4px;
}

.toggle-password:hover {
    opacity: 1;
    color: #374151;
    background-color: rgba(107, 114, 128, 0.1);
}

/* Mensajes del sistema mejorados */
.mensajes {
    margin-bottom: 2rem;
}

.mensajes p {
    padding: 16px 20px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    margin-bottom: 0.5rem;
    backdrop-filter: blur(10px);
}

.mensajes .success {
    background: rgba(240, 253, 244, 0.95);
    color: #065f46;
    border: 1px solid rgba(187, 247, 208, 0.5);
}

.mensajes .error {
    background: rgba(254, 242, 242, 0.95);
    color: #dc2626;
    border: 1px solid rgba(252, 165, 165, 0.5);
}

/* Animaciones suaves */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-container {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive mejorado */
@media (max-width: 480px) {
    body {
        padding: 15px;
    }

    .login-container {
        padding: 2rem 1.5rem;
        margin: 0;
        border-radius: 12px;
    }

    h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    input, button {
        padding: 14px 18px;
        font-size: 16px;
    }
}

@media (max-width: 360px) {
    .login-container {
        padding: 1.5rem 1rem;
    }

    h2 {
        font-size: 1.75rem;
    }
}

/* Efectos adicionales para pantallas grandes */
@media (min-width: 1024px) {
    .login-container {
        transform: scale(1);
        transition: transform 0.3s ease;
    }

    .login-container:hover {
        transform: scale(1.02);
    }
}