    /* 主容器 */
.container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* 登录卡片 */
.login-card {
    background: white;
    border-radius: 32px;
    border: 1px solid #e2eee8;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.08);
    max-width: 460px;
    width: 100%;
    padding: 40px 36px;
    transition: transform 0.2s;
}
.login-header {
    text-align: center;
    margin-bottom: 32px;
}
.login-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #162a22;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
}
.login-header p {
    color: #6a8b7a;
    font-size: 0.85rem;
}
.input-group {
    margin-bottom: 24px;
}
.input-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #2c5a4a;
    margin-bottom: 8px;
}
.input-wrapper {
    display: flex;
    align-items: center;
    background: #fefefe;
    border: 1px solid #d4e2db;
    border-radius: 44px;
    padding: 4px 16px;
    transition: all 0.2s;
}
.input-wrapper i {
    color: #8aa79a;
    font-size: 1rem;
    margin-right: 12px;
}
.input-wrapper input {
    flex: 1;
    border: none;
    padding: 12px 0;
    font-size: 0.9rem;
    background: transparent;
    outline: none;
    font-weight: 500;
    color: #1e2a25;
    font-family: 'Inter', sans-serif;
}
.input-wrapper:focus-within {
    border-color: #2b6e4f;
    box-shadow: 0 0 0 3px rgba(43, 110, 79, 0.08);
}
.input-wrapper input::placeholder {
    color: #b9cfc2;
    font-weight: 400;
}
/* 密码切换可见性 */
.password-toggle {
    cursor: pointer;
    color: #8aa79a;
    transition: color 0.2s;
}
.password-toggle:hover {
    color: #2b6e4f;
}
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 16px 0 28px;
    font-size: 0.8rem;
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #4f6b5e;
}
.checkbox-label input {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #2b6e4f;
}
.forgot-link {
    color: #2b6e4f;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.forgot-link:hover {
    color: #1e5b41;
    text-decoration: underline;
}
.login-btn {
    background: linear-gradient(105deg, #2b6e4f 0%, #1f5b41 100%);
    border: none;
    border-radius: 44px;
    padding: 12px 20px;
    width: 100%;
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.02);
    margin-bottom: 24px;
    font-family: 'Inter', sans-serif;
}
.login-btn:hover {
    background: linear-gradient(105deg, #1f5b41 0%, #154e38 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(43, 110, 79, 0.15);
}
.login-btn:active {
    transform: translateY(1px);
}
.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 24px;
    color: #c2dbcf;
    font-size: 0.7rem;
}
.divider-line {
    flex: 1;
    height: 1px;
    background: #e2eee8;
}
.social-login {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 28px;
}
.social-icon {
    width: 44px;
    height: 44px;
    background: #f5faf7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #4f6b5e;
    font-size: 1.3rem;
    border: 1px solid #e2eee8;
}
.social-icon:hover {
    background: #fff;
    transform: translateY(-3px);
    border-color: #2b6e4f;
    color: #2b6e4f;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
}
.register-prompt {
    text-align: center;
    font-size: 0.8rem;
    color: #6a8b7a;
}
.register-prompt a {
    color: #2b6e4f;
    font-weight: 600;
    text-decoration: none;
}
.register-prompt a:hover {
    text-decoration: underline;
}


    .captcha-group {
        display: flex;
        gap: 12px;
        align-items: stretch;
    }
    .captcha-group .input-wrapper {
        flex: 1;
    }
    .captcha-image-box {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }
    .captcha-canvas {
        border-radius: 16px;
        border: 1px solid #d4e2db;
        cursor: pointer;
        background: #fafdfb;
        width: 110px;
        height: 44px;
        display: block;
        transition: border-color 0.2s, box-shadow 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .captcha-canvas img{
        border-radius: 20px;
    }
    .captcha-canvas:hover {
        border-color: #2b6e4f;
        box-shadow: 0 0 0 2px rgba(43, 110, 79, 0.08);
    }
    .captcha-refresh-btn {
        background: none;
        border: none;
        color: #8aa79a;
        font-size: 1.1rem;
        cursor: pointer;
        padding: 8px 4px;
        transition: color 0.2s, transform 0.2s;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .captcha-refresh-btn:hover {
        color: #2b6e4f;
        transform: rotate(60deg);
    }

    .form-options {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 16px 0 28px;
        font-size: 0.8rem;
    }
    .checkbox-label {
        display: flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
        color: #4f6b5e;
    }
    .checkbox-label input {
        width: 16px;
        height: 16px;
        cursor: pointer;
        accent-color: #2b6e4f;
    }
    .forgot-link {
        color: #2b6e4f;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s;
    }
    .forgot-link:hover {
        color: #1e5b41;
        text-decoration: underline;
    }
    .login-btn {
        background: linear-gradient(105deg, #2b6e4f 0%, #1f5b41 100%);
        border: none;
        border-radius: 44px;
        padding: 12px 20px;
        width: 100%;
        color: white;
        font-weight: 700;
        font-size: 0.95rem;
        cursor: pointer;
        transition: all 0.2s;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.02);
        margin-bottom: 24px;
        font-family: 'Inter', sans-serif;
    }
    .login-btn:hover {
        background: linear-gradient(105deg, #1f5b41 0%, #154e38 100%);
        transform: translateY(-2px);
        box-shadow: 0 8px 18px rgba(43, 110, 79, 0.15);
    }
    .login-btn:active {
        transform: translateY(1px);
    }
    .divider {
        display: flex;
        align-items: center;
        gap: 12px;
        margin: 16px 0 24px;
        color: #c2dbcf;
        font-size: 0.7rem;
    }
    .divider-line {
        flex: 1;
        height: 1px;
        background: #e2eee8;
    }
    .social-login {
        display: flex;
        justify-content: center;
        gap: 24px;
        margin-bottom: 28px;
    }
    .social-icon {
        width: 44px;
        height: 44px;
        background: #f5faf7;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s;
        color: #4f6b5e;
        font-size: 1.3rem;
        border: 1px solid #e2eee8;
    }
    .social-icon:hover {
        background: #fff;
        transform: translateY(-3px);
        border-color: #2b6e4f;
        color: #2b6e4f;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
    }
    .register-prompt {
        text-align: center;
        font-size: 0.8rem;
        color: #6a8b7a;
    }
    .register-prompt a {
        color: #2b6e4f;
        font-weight: 600;
        text-decoration: none;
    }
    .register-prompt a:hover {
        text-decoration: underline;
    }


/* toast 提示 */
.toast-message {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1e2f28;
    backdrop-filter: blur(12px);
    color: white;
    padding: 10px 20px;
    border-radius: 40px;
    font-size: 0.8rem;
    z-index: 1100;
    opacity: 0;
    transition: all 0.25s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}
.toast-message.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 移动端适配 */
@media (max-width: 540px) {
    .navbar-inner { padding: 10px 20px; }
    .login-card { padding: 32px 24px; }
    .login-header h2 { font-size: 1.5rem; }
    .social-icon { width: 40px; height: 40px; font-size: 1.1rem; }
}

    .seccodeverify-s{
        display: flex;
        align-items: center;
        gap: 12px;
    }


   .seccodeverify-s i {
        color: #8aa79a;
       font-size: 1rem;
    }

    .agree-group {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 10px 0 22px;
        font-size: 0.8rem;
        color: #4f6b5e;
    }


    /* ========== 协议弹窗样式 ========== */
    .agreement-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(6px);
        z-index: 1050;
        display: flex;
        align-items: center;
        justify-content: center;
        visibility: hidden;
        opacity: 0;
        transition: visibility 0.25s, opacity 0.25s ease;
    }
    .agreement-modal.active {
        visibility: visible;
        opacity: 1;
    }
    .agreement-modal .modal-card {
        background: white;
        border-radius: 24px;
        max-width: 620px;
        width: 92%;
        max-height: 85vh;
        display: flex;
        flex-direction: column;
        box-shadow: 0 32px 48px rgba(0, 0, 0, 0.2);
        transform: scale(0.96);
        transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    }
    .agreement-modal.active .modal-card {
        transform: scale(1);
    }
    .agreement-modal .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 28px 16px;
        border-bottom: 1px solid #eef3ef;
        flex-shrink: 0;
    }
    .agreement-modal .modal-header h3 {
        font-size: 1.2rem;
        font-weight: 700;
        color: #1e3a2f;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .agreement-modal .modal-header h3 i {
        color: #2b6e4f;
    }
    .agreement-modal .modal-close {
        background: none;
        border: none;
        font-size: 1.6rem;
        cursor: pointer;
        color: #8aa79a;
        transition: color 0.2s;
        line-height: 1;
        padding: 0 4px;
    }
    .agreement-modal .modal-close:hover {
        color: #e74c3c;
    }

    /* 协议标签切换 */
    .agreement-tabs {
        display: flex;
        gap: 4px;
        padding: 0 28px;
        border-bottom: 1px solid #eef3ef;
        flex-shrink: 0;
        background: #fafdfb;
    }
    .agreement-tabs .tab-btn {
        background: none;
        border: none;
        padding: 12px 20px;
        font-size: 0.85rem;
        font-weight: 600;
        color: #6a8b7a;
        cursor: pointer;
        transition: all 0.2s;
        border-bottom: 3px solid transparent;
        font-family: 'Inter', sans-serif;
    }
    .agreement-tabs .tab-btn:hover {
        color: #2b6e4f;
    }
    .agreement-tabs .tab-btn.active {
        color: #2b6e4f;
        border-bottom-color: #2b6e4f;
    }

    /* 协议内容区 */
    .agreement-body {
        padding: 24px 28px 20px;
        overflow-y: auto;
        flex: 1;
        font-size: 0.88rem;
        line-height: 1.7;
        color: #3d554a;
    }
    .agreement-body h4 {
        font-size: 1rem;
        font-weight: 700;
        color: #1e3a2f;
        margin: 16px 0 8px;
    }
    .agreement-body h4:first-child {
        margin-top: 0;
    }
    .agreement-body p {
        margin-bottom: 10px;
    }
    .agreement-body ul {
        padding-left: 24px;
        margin-bottom: 12px;
    }
    .agreement-body ul li {
        margin-bottom: 4px;
    }

    .agreement-modal .modal-footer {
        padding: 14px 28px 20px;
        border-top: 1px solid #eef3ef;
        text-align: center;
        flex-shrink: 0;
    }
    .agreement-modal .modal-footer .confirm-btn {
        background: linear-gradient(105deg, #2b6e4f 0%, #1f5b41 100%);
        border: none;
        border-radius: 44px;
        padding: 10px 32px;
        color: white;
        font-weight: 600;
        font-size: 0.85rem;
        cursor: pointer;
        transition: all 0.2s;
        font-family: 'Inter', sans-serif;
    }
    .agreement-modal .modal-footer .confirm-btn:hover {
        background: linear-gradient(105deg, #1f5b41 0%, #154e38 100%);
        transform: translateY(-1px);
    }

    @media (max-width: 540px) {
        .navbar-inner { padding: 10px 20px; }
        .register-card { padding: 28px 20px; }
        .register-header h2 { font-size: 1.5rem; }
        .captcha-group { flex-wrap: wrap; }
        .captcha-image-box { width: 100%; justify-content: flex-start; }
        .captcha-canvas { width: 120px; height: 44px; }
        .agreement-modal .modal-card { width: 96%; max-height: 90vh; }
        .agreement-modal .modal-header { padding: 16px 20px; }
        .agreement-tabs { padding: 0 16px; }
        .agreement-tabs .tab-btn { padding: 10px 14px; font-size: 0.8rem; }
        .agreement-body { padding: 18px 20px; font-size: 0.82rem; }
        .agreement-modal .modal-footer { padding: 12px 20px 16px; }
    }