/* ==========================================================================
   会员登录 /login
   ========================================================================== */
.login-section {
    padding: 24px 0 58px;
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
    min-height: 570px;
    overflow: hidden;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 32px 70px -46px rgba(16, 24, 40, .45);
}

/* ---------- 左侧品牌区 ---------- */
.login-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 52px 54px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(142deg, #0b3f2a 0%, #126542 48%, #2c9a63 100%);
}

.login-visual::before,
.login-visual::after {
    position: absolute;
    content: "";
    border-radius: 50%;
    pointer-events: none;
}

.login-visual::before {
    top: -150px;
    right: -120px;
    width: 420px;
    height: 420px;
    background: rgba(255, 255, 255, .07);
}

.login-visual::after {
    bottom: -160px;
    left: -120px;
    width: 360px;
    height: 360px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
}

.login-visual > * {
    position: relative;
    z-index: 1;
}

.login-eyebrow {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, .8);
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
}

.login-visual h1 {
    max-width: 480px;
    margin: 0 0 16px;
    color: #fff;
    font-size: 34px;
    font-weight: 600;
    line-height: 1.45;
}

.login-visual h1 span {
    color: #ffd2b3;
}

.login-visual > p {
    max-width: 440px;
    margin: 0;
    color: rgba(255, 255, 255, .74);
    font-size: 14px;
    line-height: 1.9;
}

.login-features {
    display: grid;
    gap: 16px;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
}

.login-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255, 255, 255, .85);
    font-size: 14px;
    line-height: 1.7;
}

.login-feature-icon {
    display: flex;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: #0f5132;
    font-size: 14px;
    border-radius: 9px;
    background: #d9f3e5;
}

.login-features strong {
    display: block;
    margin-bottom: 2px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.login-features small {
    display: block;
    color: rgba(255, 255, 255, .62);
    font-size: 12px;
    line-height: 1.6;
}

.login-visual-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 36px;
    padding-top: 20px;
    color: rgba(255, 255, 255, .55);
    font-size: 12px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

/* ---------- 右侧登录区 ---------- */
.login-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 54px;
    background: #fff;
}

.login-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
}

.login-panel-head h2 {
    margin: 0 0 7px;
    color: #1b2a3a;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
}

.login-panel-head p {
    margin: 0;
    color: #98a2b3;
    font-size: 13px;
    line-height: 1.7;
}

.login-panel-head p a {
    color: #187a4d;
    font-weight: 500;
}

.login-panel-head p a:hover {
    text-decoration: underline;
}

.login-badge {
    flex-shrink: 0;
    padding: 5px 10px;
    color: #b76b00;
    font-size: 12px;
    border-radius: 999px;
    background: #fff7e8;
}

.login-form {
    width: 100%;
}

.login-field {
    margin-bottom: 20px;
}

.login-field label {
    display: block;
    margin-bottom: 8px;
    color: #475467;
    font-size: 13px;
    font-weight: 500;
}

.login-input {
    display: flex;
    align-items: center;
    height: 50px;
    padding: 0 15px;
    background: #fafbfd;
    border: 1px solid #e5e9ef;
    border-radius: 11px;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.login-input:focus-within {
    background: #fff;
    border-color: #2fa86a;
    box-shadow: 0 0 0 3px rgba(47, 168, 106, .12);
}

.login-input > i {
    flex-shrink: 0;
    margin-right: 10px;
    color: #98a2b3;
    font-size: 17px;
}

.login-input input {
    width: 100%;
    height: 100%;
    color: #1f2937;
    font-size: 14px;
    border: 0;
    outline: 0;
    background: transparent;
}

.login-input input::placeholder {
    color: #b6bdc7;
}

.login-eye {
    flex-shrink: 0;
    padding: 0 0 0 10px;
    color: #98a2b3;
    font-size: 13px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.login-eye:hover {
    color: #187a4d;
}

.login-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 2px 0 24px;
    color: #667085;
    font-size: 13px;
}

.login-remember {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}

.login-remember input {
    accent-color: #187a4d;
}

.login-tools a {
    color: #187a4d;
}

.login-tools a:hover {
    text-decoration: underline;
}

.login-submit {
    display: block;
    width: 100%;
    height: 50px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #ff8a33, #ff5a00);
    cursor: pointer;
    box-shadow: 0 16px 28px -18px rgba(255, 90, 0, .9);
    transition: transform .16s ease, box-shadow .2s ease, filter .2s ease;
}

.login-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 20px 34px -18px rgba(255, 90, 0, .95);
    filter: brightness(1.02);
}

.login-submit:disabled {
    opacity: .7;
    cursor: not-allowed;
}

.login-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 26px;
    padding-top: 20px;
    color: #98a2b3;
    font-size: 12px;
    line-height: 1.8;
    border-top: 1px solid #eef2f6;
}

.login-note i {
    margin-top: 1px;
    color: #2fa86a;
}

.login-service {
    margin-top: 12px;
    color: #a3adba;
    font-size: 12px;
    line-height: 1.8;
}

.login-service a {
    color: #187a4d;
}

.login-service a:hover {
    text-decoration: underline;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
    .login-shell {
        grid-template-columns: minmax(0, .9fr) minmax(340px, 1.1fr);
    }

    .login-visual {
        padding: 42px 36px;
    }

    .login-visual h1 {
        font-size: 29px;
    }

    .login-panel {
        padding: 42px 36px;
    }
}

@media (max-width: 820px) {
    .login-shell {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .login-visual {
        padding: 34px 30px 30px;
    }

    .login-visual h1 {
        font-size: 26px;
    }

    .login-features {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
        margin-top: 24px;
    }

    .login-visual-foot {
        margin-top: 24px;
    }

    .login-panel {
        padding: 36px 30px 42px;
    }
}

@media (max-width: 560px) {
    .login-section {
        padding: 14px 14px 38px;
    }

    .login-features {
        grid-template-columns: 1fr;
    }

    .login-panel-head {
        flex-direction: column;
    }

    .login-visual h1 {
        font-size: 23px;
    }
}

/* 小屏下取消站点默认的 1200px 固定宽度 */
@media (max-width: 1000px) {
    .section.login-section {
        width: auto;
        min-width: 0;
        max-width: none;
        margin-left: 16px;
        margin-right: 16px;
    }
}

@media (max-width: 560px) {
    .section.login-section {
        margin-left: 0;
        margin-right: 0;
    }
}

/* ---------- 注册页补充 ---------- */
.register-panel {
    padding-top: 42px;
    padding-bottom: 42px;
}

.register-agree {
    justify-content: flex-start;
    margin: 2px 0 22px;
    line-height: 1.6;
}

.register-agree .login-remember {
    align-items: flex-start;
}

.register-agree .login-remember input {
    margin-top: 3px;
}

.register-agree a {
    color: #187a4d;
}

.register-agree a:hover {
    text-decoration: underline;
}
