* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── Hero ────────────────────────────────────── */
.login-hero {
    min-height: 100vh;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
}

.login-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 40, 10, 0.04) 0%,
        rgba(0, 20, 5,  0.02) 45%,
        rgba(0,  0, 0,  0.28) 100%
    );
}

/* ── Panel ───────────────────────────────────── */
.login-panel {
    position: relative;
    z-index: 2;
    width: 390px;
    margin-right: 7%;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(22px) saturate(1.4);
    -webkit-backdrop-filter: blur(22px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    padding: 48px 42px 44px;
    box-shadow:
        0 32px 64px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    animation: fadeIn 0.5s ease-out;
}

/* ── Logo ────────────────────────────────────── */
.lp-logo {
    text-align: center;
    margin-bottom: 20px;
}
.lp-logo img {
    height: 70px;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.35));
}

/* ── Heading ─────────────────────────────────── */
.lp-title {
    color: #1c4d2a;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 6px;
}
.lp-subtitle {
    color: #5a6b60;
    font-size: 13px;
    text-align: center;
    margin: 0 0 28px;
}

/* ── Alerta ────────────────────────────────────── */
.lp-alert {
    background: rgba(220, 53, 69, 0.08);
    border: 1px solid rgba(220, 53, 69, 0.35);
    color: #b3202f;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 18px;
    text-align: center;
}

/* ── Fields ──────────────────────────────────── */
.lf-group { margin-bottom: 16px; }
.lf-group label {
    display: block;
    color: #3a4a3f;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 7px;
}

.lf-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.lf-input-wrap .lf-icon {
    position: absolute;
    left: 14px;
    color: #8b9a91;
    font-size: 14px;
    pointer-events: none;
}
.lf-input {
    width: 100%;
    height: 46px;
    background: #f4f6f5;
    border: 1px solid #dbe3de;
    border-radius: 11px;
    color: #1c2b22;
    font-size: 15px;
    padding: 0 16px 0 40px;
    transition: background .22s, border-color .22s, box-shadow .22s;
    outline: none;
    appearance: none;
    font-family: inherit;
}
select.lf-input { cursor: pointer; }
select.lf-input option { background: #ffffff; color: #1c2b22; }
.lf-input:focus {
    background: #ffffff;
    border-color: rgba(58, 170, 85, 0.70);
    box-shadow: 0 0 0 3px rgba(58, 170, 85, 0.20);
}
.lf-input::placeholder { color: #94a39b; }

/* ── Button ──────────────────────────────────── */
.lf-btn {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #2e8b44 0%, #3aaa55 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 10px;
    transition: transform .2s, box-shadow .2s, background .2s;
    box-shadow: 0 6px 22px rgba(46, 139, 68, 0.52);
    font-family: inherit;
}
.lf-btn:hover {
    background: linear-gradient(135deg, #35a050 0%, #45bf63 100%);
    box-shadow: 0 10px 30px rgba(46, 139, 68, 0.65);
    transform: translateY(-2px);
}
.lf-btn:active { transform: translateY(0); }

/* ── Divider & Footer ─────────────────────────── */
.lf-divider {
    height: 1px;
    background: #e3e8e5;
    margin: 24px 0 18px;
}
.lf-footer {
    text-align: center;
    color: #7c8a81;
    font-size: 11px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 768px) {
    .login-hero {
        justify-content: center;
        padding: 40px 20px;
    }
    .login-panel {
        width: 100%;
        max-width: 380px;
        margin-right: 0;
        padding: 40px 28px;
    }
}
