.ucbr-modal { display: none; position: fixed; z-index: 99999; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.6); backdrop-filter: blur(3px); align-items: center; justify-content: center; }
.ucbr-modal.is-active { display: flex; }
.ucbr-modal-content { background-color: #fff; padding: 30px; border-radius: 8px; width: 90%; max-width: 750px; box-shadow: 0 5px 15px rgba(0,0,0,0.3); position: relative; animation: ucbr_fadein 0.3s ease; }
@keyframes ucbr_fadein { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
.ucbr-close-btn { position: absolute; right: 15px; top: 10px; font-size: 28px; font-weight: bold; color: #aaa; cursor: pointer; line-height: 1; }
.ucbr-close-btn:hover { color: #000; }
.ucbr-flex { display: flex; gap: 30px; flex-wrap: wrap; }
.ucbr-box { flex: 1; min-width: 280px; position: relative; }
.ucbr-box h3 { margin-top: 0; border-bottom: 2px solid #0073aa; padding-bottom: 8px; font-size: 1.2rem; color: #333; }
.ucbr-form-group { margin-bottom: 15px; }
.ucbr-form-group label { display: block; margin-bottom: 5px; font-weight: bold; font-size: 0.9rem; color: #444; }
.ucbr-form-group input { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; transition: border 0.2s; }
.ucbr-form-group input:focus { border-color: #0073aa; outline: none; }
.ucbr-submit { background: #0073aa; color: #fff; padding: 10px 20px; border: none; border-radius: 4px; cursor: pointer; width: 100%; font-weight: bold; font-size: 1rem; transition: background 0.2s; }
.ucbr-submit:hover { background: #005177; }

.ucbr-msg-container { display: none; padding: 12px; margin-bottom: 15px; border-radius: 4px; font-weight: 500; font-size: 0.95rem; line-height: 1.4; }
.ucbr-msg-error { display: block; background: #ffe6e6; color: #cc0000; border: 1px solid #ffcccc; }
.ucbr-msg-success { display: block; background: #e6ffe6; color: #006600; border: 1px solid #ccffcc; }
.ucbr-password-hint { font-size: 0.8rem; color: #666; margin-top: 4px; }

.ucbr-loading-overlay { display: none; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255,255,255,0.7); z-index: 5; align-items: center; justify-content: center; }
.ucbr-box.is-loading .ucbr-loading-overlay { display: flex; }
.ucbr-spinner { width: 30px; height: 30px; border: 3px solid #ccc; border-top-color: #0073aa; border-radius: 50%; animation: ucbr_spin 0.8s linear infinite; }
@keyframes ucbr_spin { to { transform: rotate(360deg); } }

/* CSS Tối ưu riêng cho Con Mắt Mật Khẩu */
.ucbr-password-wrapper { position: relative; display: flex; align-items: center; }
.ucbr-password-wrapper input { padding-right: 42px !important; }
.ucbr-toggle-password { position: absolute; right: 10px; background: none !important; border: none !important; padding: 5px !important; cursor: pointer; color: #777; display: flex; align-items: center; justify-content: center; z-index: 2; transition: color 0.2s; line-height: 1; }
.ucbr-toggle-password:hover { color: #0073aa; }
.ucbr-toggle-password svg { width: 20px; height: 20px; pointer-events: none; }