/* 注册页 — 协议与弹窗（布局见 fe-auth.css） */
.agreement-section {
    text-align: left;
    margin-top: 4px;
    font-size: 13px;
}

.agreement-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 4px;
}

.agreement-checkbox input {
    width: auto;
    margin-top: 3px;
    flex-shrink: 0;
}

.agreement-checkbox label {
    font-weight: 500;
    font-size: 13px;
    line-height: 1.45;
}

.agreement-link {
    color: var(--primary-color, #0288d1);
    text-decoration: underline;
    cursor: pointer;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.45);
}

.modal-content {
    background: var(--card-bg, #fff);
    margin: 5% auto;
    border-radius: 14px;
    width: 90%;
    max-width: 560px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
}

.modal-header {
    padding: 18px 22px;
    background: var(--gradient-primary, linear-gradient(135deg, #0288d1, #0277bd));
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.close {
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.9;
}

.modal-body {
    padding: 22px;
    overflow-y: auto;
    flex: 1;
}

.modal-body h3 {
    margin: 0 0 12px;
    font-size: 1rem;
}

.modal-body p {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary, #475569);
}

.important {
    color: #dc2626;
    font-weight: 700;
}

.modal-footer {
    padding: 14px 22px;
    background: var(--bg-primary, #f8fafc);
    border-top: 1px solid var(--border-color, #e2e8f0);
    text-align: right;
}

.modal-footer button {
    margin-left: 8px;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: #fff;
}

.btn-agree {
    background: #16a34a;
}

.btn-decline {
    background: #dc2626;
}
