/* ============================================================
   林业防火码 · 登录页
   ============================================================ */

.fhm-login-body {
    margin: 0;
    min-height: 100vh;
    padding: 32px 16px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: #21352b;
    background:
        radial-gradient(1100px 620px at 88% 6%, rgba(224, 138, 91, .16), transparent 56%),
        radial-gradient(900px 560px at 6% 94%, rgba(89, 168, 124, .20), transparent 58%),
        linear-gradient(145deg, #0a1e14 0%, #123322 44%, #1b4a33 100%);
}

.fhm-login-body::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .35;
    background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 24px 24px;
}

.fhm-login-hills {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 36vh;
    min-height: 220px;
    pointer-events: none;
}

.fhm-login-shell {
    box-sizing: border-box;
    position: relative;
    z-index: 2;
    width: min(1020px, 100%);
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    overflow: hidden;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 34px 80px rgba(0, 0, 0, .45);
}

/* ---------------- 品牌区 ---------------- */

.fhm-login-brand {
    min-width: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 46px 44px 40px;
    overflow: hidden;
    color: #e9f4ee;
    background: linear-gradient(155deg, #10291b 0%, #1b4a32 58%, #276345 100%);
}

.fhm-brand-art {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 200px;
    pointer-events: none;
}

.fhm-brand-content {
    position: relative;
    z-index: 1;
}

.fhm-brand-mark {
    position: relative;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 27px;
    color: #0d2418;
    background: linear-gradient(150deg, #8fd2ac, #3f8a63);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
}

.fhm-brand-fire {
    position: absolute;
    right: -5px;
    bottom: -5px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid #143a27;
    background: #e08a5b;
    color: #fff;
    font-size: 11px;
}

.fhm-brand-title {
    margin: 24px 0 8px;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 3px;
}

.fhm-brand-sub {
    margin: 0;
    font-size: 14px;
    letter-spacing: .6px;
    color: rgba(233, 244, 238, .72);
}

.fhm-brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: max-content;
    margin-top: 18px;
    padding: 6px 13px;
    font-size: 12px;
    letter-spacing: .5px;
    color: #d9ecdf;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
}

.fhm-brand-points {
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fhm-brand-points li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    color: rgba(238, 247, 242, .86);
}

.fhm-brand-points i {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-size: 13px;
    color: #9fd9b8;
    background: rgba(255, 255, 255, .10);
}

.fhm-brand-foot {
    position: relative;
    z-index: 1;
    margin-top: 32px;
    font-size: 12px;
    letter-spacing: 1px;
    color: rgba(233, 244, 238, .48);
}

/* ---------------- 登录区 ---------------- */

.fhm-login-panel {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 46px 42px;
    background: #fbfdfb;
}

.fhm-login-title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #1d3529;
}

.fhm-login-desc {
    margin: 0 0 28px;
    font-size: 13px;
    color: #8a9c92;
}

.fhm-field { margin-bottom: 16px; }

.fhm-label {
    display: block;
    margin-bottom: 7px;
    font-size: 12.5px;
    letter-spacing: .5px;
    color: #5f7468;
}

.fhm-input { position: relative; }

.fhm-input > i {
    position: absolute;
    left: 14px;
    top: 23px;
    transform: translateY(-50%);
    font-size: 14px;
    color: #9bb2a5;
    pointer-events: none;
}

.fhm-input > input {
    box-sizing: border-box;
    width: 100%;
    height: 46px;
    padding: 0 14px 0 40px;
    font-size: 14px;
    color: #21352b;
    background: #f5f9f6;
    border: 1px solid #dce8e1;
    border-radius: 10px;
    outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.fhm-input > input::placeholder { color: #a8b9ae; }

.fhm-input > input:focus {
    background: #fff;
    border-color: #4f8f6c;
    box-shadow: 0 0 0 3px rgba(79, 143, 108, .14);
}

.fhm-input > label.error {
    display: block;
    margin: 6px 0 0 2px;
    font-size: 12px;
    font-weight: 400;
    color: #c0563a;
}

.fhm-captcha-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.fhm-captcha-row .fhm-input { flex: 1 1 auto; }

.fhm-captcha-img {
    flex: 0 0 112px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #eef5f0;
    border: 1px solid #dce8e1;
    border-radius: 10px;
}

.fhm-captcha-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.fhm-login-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2px 0 20px;
    font-size: 12.5px;
    color: #7d8f84;
}

.fhm-check {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    font-weight: 400;
    color: #6b7f73;
    cursor: pointer;
}

.fhm-check input {
    width: 14px;
    height: 14px;
    accent-color: #3f8a63;
}

.fhm-login-btn {
    width: 100%;
    height: 48px;
    font-size: 15px;
    letter-spacing: 6px;
    text-indent: 6px;
    color: #fff;
    background: linear-gradient(135deg, #2f6b4f, #4a9670);
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(47, 107, 79, .28);
    transition: filter .2s, box-shadow .2s, transform .12s;
}

.fhm-login-btn:hover {
    filter: brightness(1.05);
    box-shadow: 0 14px 28px rgba(47, 107, 79, .34);
}

.fhm-login-btn:active { transform: translateY(1px); }

.fhm-login-hint {
    margin-top: 14px;
    font-size: 11.5px;
    text-align: center;
    color: #a3b3a9;
}

.fhm-login-extra {
    margin-top: 16px;
    font-size: 12.5px;
    text-align: center;
    color: #7d8f84;
}

.fhm-login-extra a { color: #3f8a63; }

.fhm-login-footer {
    position: relative;
    z-index: 2;
    margin-top: 22px;
    font-size: 12px;
    text-align: center;
    letter-spacing: .4px;
    color: rgba(226, 240, 232, .45);
}

/* ---------------- 响应式 ---------------- */

@media (max-width: 900px) {
    .fhm-login-shell {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 460px;
    }

    .fhm-login-brand { padding: 28px 26px 24px; }

    .fhm-brand-art,
    .fhm-brand-points,
    .fhm-brand-foot {
        display: none;
    }

    .fhm-brand-title {
        margin-top: 16px;
        font-size: 24px;
    }

    .fhm-brand-sub { font-size: 13px; }

    .fhm-login-panel { padding: 32px 26px 30px; }
}

@media (max-width: 420px) {
    .fhm-login-body { padding: 18px 12px; }
    .fhm-captcha-img { flex-basis: 96px; }
}
