/* Styles for register.php. */
#password-strength-status {
    margin-top: 10px;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    font-size: 14px;
}
/* 密码强度等级的背景色和边框 */
#password-strength-status.weak {
    color: #ff0000; /* 弱密码红色字体 */
    background-color: #f8d7da; /* 浅红色背景 */
    border: 1px solid #f5c6cb; /* 浅红色边框 */
}

#password-strength-status.medium {
    color: #ff9800; /* 中等密码橙色字体 */
    background-color: #fff3cd; /* 浅橙色背景 */
    border: 1px solid #ffeeba; /* 浅橙色边框 */
}

#password-strength-status.strong {
    color: #4caf50; /* 强密码绿色字体 */
    background-color: #d4edda; /* 浅绿色背景 */
    border: 1px solid #c3e6cb; /* 浅绿色边框 */
}

/* 复选框条款样式同步 */
.agree-terms-row{display:flex;align-items:center;gap:10px}
#agree-terms{width:18px;height:18px;accent-color:#007bff}
.agree-terms-label{margin:0;cursor:pointer;user-select:none}
.terms-link{display:inline-block;margin-top:6px;color:#007bff;text-decoration:none}
.terms-link:hover{text-decoration:underline}

/* Modal điều khoản */
.policy-modal{position:fixed;left:0;top:0;width:100%;height:100%;z-index:1050;display:none}
.policy-modal.show{display:block}
.policy-modal .policy-modal-overlay{position:absolute;left:0;top:0;width:100%;height:100%;background:rgba(0,0,0,0.5)}
.policy-modal .policy-modal-dialog{position:relative;background:#fff;max-width:800px;margin:5% auto;border-radius:6px;box-shadow:0 10px 30px rgba(0,0,0,.2);display:flex;flex-direction:column}
.policy-modal .policy-modal-header{padding:12px 16px;border-bottom:1px solid #eee;display:flex;align-items:center;justify-content:space-between}
.policy-modal .policy-modal-header h5{margin:0;font-size:18px}
.policy-modal .policy-modal-close{background:transparent;border:0;font-size:22px;line-height:1;cursor:pointer}
.policy-modal .policy-modal-body{padding:0 16px 0 16px;max-height:60vh;overflow:hidden}
.policy-modal .policy-content-scroll{padding:12px 0;max-height:60vh;overflow-y:auto}
.policy-modal .policy-modal-footer{padding:12px 16px;border-top:1px solid #eee;display:flex;gap:10px;justify-content:flex-end}
.policy-modal .btn{padding:8px 14px;border-radius:4px;border:1px solid transparent;cursor:pointer}
.policy-modal .btn-secondary{background:#e9ecef;color:#212529;border-color:#dee2e6}
.policy-modal .btn-primary{background:#007bff;color:#fff}
.policy-modal .btn-primary:disabled{background:#6c757d;border-color:#6c757d;cursor:not-allowed}
